Commit 8d4d9d19 by Gerald Pfeifer Committed by Gerald Pfeifer

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
parent c93aa804
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>
* gcc_release: GNU CC -> GCC.
......
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment