aboutsummaryrefslogtreecommitdiff
path: root/maintainer-scripts
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-09 05:49:55 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-09 05:49:55 +0000
commit8ae3f78d9c70d76b2791c780285a5b2a8314c11c (patch)
tree62d921aa4f6c3f9c028477429404db5063de3c62 /maintainer-scripts
parent93528070edd51f627a9d47bbb6c92d1a90fcc553 (diff)
* gcc_release: Correct upload handling.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53315 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'maintainer-scripts')
-rw-r--r--maintainer-scripts/ChangeLog4
-rwxr-xr-xmaintainer-scripts/gcc_release7
2 files changed, 9 insertions, 2 deletions
diff --git a/maintainer-scripts/ChangeLog b/maintainer-scripts/ChangeLog
index e4d37ce0032..732172a98fc 100644
--- a/maintainer-scripts/ChangeLog
+++ b/maintainer-scripts/ChangeLog
@@ -1,3 +1,7 @@
+2002-05-08 Mark Mitchell <mark@codesourcery.com>
+
+ * gcc_release: Correct upload handling.
+
2002-04-22 Mark Mitchell <mark@codesourcery.com>
* gcc_release (build_diffs): Remove reference to Chill.
diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release
index 298ac825ea4..850525f4b93 100755
--- a/maintainer-scripts/gcc_release
+++ b/maintainer-scripts/gcc_release
@@ -337,9 +337,11 @@ upload_files() {
# Make sure the directory exists on the server.
if [ $LOCAL -eq 0 ]; then
${SSH} -l ${GCC_USERNAME} ${GCC_HOSTNAME} mkdir ${FTP_PATH}
+ UPLOAD_PATH="${GCC_USERNAME}@${GCC_HOSTNAME}:${FTP_PATH}"
else
mkdir -p "${FTP_PATH}" \
|| error "Could not create \`${FTP_PATH}'"
+ UPLOAD_PATH=${FTP_PATH}
fi
for x in gcc*.gz gcc*.bz2; do
@@ -347,8 +349,9 @@ upload_files() {
# Make sure the file will be readable on the server.
chmod a+r ${x}
# Copy it.
- ${SCP} ${x} ${FTP_PATH} || \
- error "Could not upload ${x}"
+ if [ $LOCAL -eq 0 ]; then
+ ${SCP} ${x} ${UPLOAD_PATH} || error "Could not upload ${x}"
+ fi
fi
done
}