From 8d4d9d1911a80652dc826ea85975f2da57d4c0b5 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Tue, 20 May 2003 13:47:50 +0200 Subject: [PATCH] gcc_release (upload_files): Put diff files into a "diffs" subdirectory * gcc_release (upload_files): Put diff files into a "diffs" subdirectory From-SVN: r66996 --- maintainer-scripts/ChangeLog | 5 +++++ maintainer-scripts/gcc_release | 16 +++++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/maintainer-scripts/ChangeLog b/maintainer-scripts/ChangeLog index ffa5e6c..975c615 100644 --- a/maintainer-scripts/ChangeLog +++ b/maintainer-scripts/ChangeLog @@ -1,3 +1,8 @@ +2003-05-20 Gerald Pfeifer + + * gcc_release (upload_files): Put diff files into a "diffs" + subdirectory + 2003-05-18 Nathanael Nerode * gcc_release: GNU CC -> GCC. diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release index f8fcf63..9f22b83 100755 --- a/maintainer-scripts/gcc_release +++ b/maintainer-scripts/gcc_release @@ -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 } -- 2.7.4