summaryrefslogtreecommitdiff
path: root/maintainer-scripts/gcc_release
diff options
context:
space:
mode:
authorgerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-20 11:47:50 +0000
committergerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-20 11:47:50 +0000
commite43a8b47cd2db00f552fc252be30790cefa53121 (patch)
treee18169ba2808407cf2131f2d712fb4ce48a77b55 /maintainer-scripts/gcc_release
parent9051349abe19ff2a290a38dcf57a7694f4fe00ee (diff)
downloadgcc-e43a8b47cd2db00f552fc252be30790cefa53121.tar.gz
* gcc_release (upload_files): Put diff files into a "diffs"
subdirectory git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66996 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'maintainer-scripts/gcc_release')
-rwxr-xr-xmaintainer-scripts/gcc_release16
1 files changed, 13 insertions, 3 deletions
diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release
index f8fcf63bfe8..9f22b839d0d 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
}