X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=maintainer-scripts%2Fgcc_release;h=9f22b839d0d21db456fb1175ffda4a48bb1b6834;hb=86d364ccd1c6f478c0774d9128efb2b2055be3c4;hp=c47ebbaf6704e5cc128f358289e6f4e092e58fa9;hpb=da33415cc3f8fdcbb5c747e66de01c1060ecfb79;p=pf3gnuchains%2Fgcc-fork.git diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release index c47ebbaf670..9f22b839d0d 100755 --- a/maintainer-scripts/gcc_release +++ b/maintainer-scripts/gcc_release @@ -11,20 +11,20 @@ # # Copyright (c) 2001, 2002 Free Software Foundation. # -# This file is part of GNU CC. +# This file is part of GCC. # -# GNU CC is free software; you can redistribute it and/or modify +# GCC is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # -# GNU CC is distributed in the hope that it will be useful, +# GCC is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with GNU CC; see the file COPYING. If not, write to +# along with GCC; see the file COPYING. If not, write to # the Free Software Foundation, 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. # @@ -335,20 +335,30 @@ upload_files() { # Make sure the directory exists on the server. if [ $LOCAL -eq 0 ]; then - ${SSH} -l ${GCC_USERNAME} ${GCC_HOSTNAME} mkdir ${FTP_PATH} + ${SSH} -l ${GCC_USERNAME} ${GCC_HOSTNAME} \ + mkdir -p "${FTP_PATH}/diffs" UPLOAD_PATH="${GCC_USERNAME}@${GCC_HOSTNAME}:${FTP_PATH}" else - mkdir -p "${FTP_PATH}" \ + mkdir -p "${FTP_PATH}/diffs" \ || error "Could not create \`${FTP_PATH}'" UPLOAD_PATH=${FTP_PATH} fi + # Then copy files to their respective (sub)directories. for x in gcc*.gz gcc*.bz2; do if [ -e ${x} ]; then # Make sure the file will be readable on the server. chmod a+r ${x} # Copy it. - ${SCP} ${x} ${UPLOAD_PATH} || error "Could not upload ${x}" + case ${x} in + *.diff.*) + SUBDIR="diffs/"; + ;; + *) + SUBDIR=""; + esac + ${SCP} ${x} ${UPLOAD_PATH}/${SUBDIR} \ + || error "Could not upload ${x}" fi done }