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
This commit is contained in:
parent
c93aa80414
commit
8d4d9d1911
@ -1,3 +1,8 @@
|
|||||||
|
2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
|
||||||
|
|
||||||
|
* gcc_release (upload_files): Put diff files into a "diffs"
|
||||||
|
subdirectory
|
||||||
|
|
||||||
2003-05-18 Nathanael Nerode <neroden@gcc.gnu.org>
|
2003-05-18 Nathanael Nerode <neroden@gcc.gnu.org>
|
||||||
|
|
||||||
* gcc_release: GNU CC -> GCC.
|
* gcc_release: GNU CC -> GCC.
|
||||||
|
@ -335,20 +335,30 @@ upload_files() {
|
|||||||
|
|
||||||
# Make sure the directory exists on the server.
|
# Make sure the directory exists on the server.
|
||||||
if [ $LOCAL -eq 0 ]; then
|
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}"
|
UPLOAD_PATH="${GCC_USERNAME}@${GCC_HOSTNAME}:${FTP_PATH}"
|
||||||
else
|
else
|
||||||
mkdir -p "${FTP_PATH}" \
|
mkdir -p "${FTP_PATH}/diffs" \
|
||||||
|| error "Could not create \`${FTP_PATH}'"
|
|| error "Could not create \`${FTP_PATH}'"
|
||||||
UPLOAD_PATH=${FTP_PATH}
|
UPLOAD_PATH=${FTP_PATH}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Then copy files to their respective (sub)directories.
|
||||||
for x in gcc*.gz gcc*.bz2; do
|
for x in gcc*.gz gcc*.bz2; do
|
||||||
if [ -e ${x} ]; then
|
if [ -e ${x} ]; then
|
||||||
# Make sure the file will be readable on the server.
|
# Make sure the file will be readable on the server.
|
||||||
chmod a+r ${x}
|
chmod a+r ${x}
|
||||||
# Copy it.
|
# 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
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user