This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: maintainer-scripts/gcc_release and "diffs/" directory
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Mark Mitchell <mark at codesourcery dot com>
- Date: Tue, 20 May 2003 13:57:56 +0200 (CEST)
- Subject: PATCH: maintainer-scripts/gcc_release and "diffs/" directory
A variant of the following patch successfully generated yesterdays's
snapshot, and I have tested the final version of upload_files() locally
as well.
I have committed this to mainline and updated the script in the gccadmin
account gcc.gnu.org as well.
2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* gcc_release (upload_files): Put diff files into a "diffs"
subdirectory
Mark, I'd like to put this on the 3.3-branch as well. Given that all
but the first (single-line) change will be exercised multiple times by
our weekly snapshots before you roll the next release, this is low risk.
Gerald
Index: gcc_release
===================================================================
RCS file: /cvs/gcc/gcc/maintainer-scripts/gcc_release,v
retrieving revision 1.23
diff -u -3 -p -r1.23 gcc_release
--- gcc_release 18 May 2003 18:59:04 -0000 1.23
+++ gcc_release 20 May 2003 11:46:16 -0000
@@ -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
}