This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 as well.

  2003-05-20  Gerald Pfeifer  <>

	* gcc_release (upload_files): Put diff files into a "diffs"

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.


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}
+      mkdir -p "${FTP_PATH}/diffs"
-    mkdir -p "${FTP_PATH}" \
+    mkdir -p "${FTP_PATH}/diffs" \
       || error "Could not create \`${FTP_PATH}'"

+  # 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}"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]