* gcc_release: Correct upload handling.
From-SVN: r53315
This commit is contained in:
parent
f979570e90
commit
1971aca7ae
2 changed files with 9 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue