This is the mail archive of the gcc-patches@gcc.gnu.org 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


The first is not cosmetic, but actually fixes a latent bug that was
exposed by my recent changes.

Both changes were used as part of the version of the script that
successfully generated yesterday's snapshot.

  2003-07-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>

	* gcc_release: Move handling of complex modes directly after
	switch handling.
	(TAG): Include the branch name as part of snapshot CVS tags.

Gerald

Index: gcc_release
===================================================================
RCS file: /cvs/gcc/gcc/maintainer-scripts/gcc_release,v
retrieving revision 1.34
diff -u -3 -p -r1.34 gcc_release
--- gcc_release	4 Jul 2003 17:25:31 -0000	1.34
+++ gcc_release	8 Jul 2003 09:53:45 -0000
@@ -520,6 +520,25 @@ while getopts "d:fr:u:t:p:sl" ARG; do
 done
 shift `expr ${OPTIND} - 1`

+# Handle the major modes.
+while [ $# -ne 0 ]; do
+    case $1 in
+    diffs)    MODE_DIFFS=1;;
+    gzip)     MODE_GZIP=1;;
+    sources)  MODE_SOURCES=1;;
+    tarfiles) MODE_TARFILES=1;;
+    upload)   MODE_UPLOAD=1;;
+    all)      MODE_SOURCES=1; MODE_TARFILES=1; MODE_DIFFS=1; MODE_UPLOAD=1;
+              if [ $SNAPSHOT -ne 1 ]; then
+                # Only for releases and pre-releases.
+                MODE_GZIP=1;
+              fi
+              ;;
+    *)        error "Unknown mode $1";;
+    esac
+    shift
+done
+
 # Perform consistency checking.
 if [ ${LOCAL} -eq 0 ] && [ -z ${CVS_USERNAME} ]; then
   error "No username specified"
@@ -567,7 +586,7 @@ else
   BRANCH="3.3"
   CVSBRANCH=gcc-3_3-branch
   FTP_PATH="${FTP_PATH}/snapshots/${BRANCH}-${LONG_DATE}"
-  TAG=gcc_ss_${DATE}
+  TAG=gcc-ss-`echo ${BRANCH} | tr '.' '_'`-${DATE}

   # Building locally on gcc.gnu.org, we know what the last snapshot date
   # was.
@@ -608,25 +627,6 @@ export CVSROOT
 # Set the timezone to UTC
 TZ="UTC0"
 export TZ
-
-# Handle the major modes.
-while [ $# -ne 0 ]; do
-    case $1 in
-    diffs)    MODE_DIFFS=1;;
-    gzip)     MODE_GZIP=1;;
-    sources)  MODE_SOURCES=1;;
-    tarfiles) MODE_TARFILES=1;;
-    upload)   MODE_UPLOAD=1;;
-    all)      MODE_SOURCES=1; MODE_TARFILES=1; MODE_DIFFS=1; MODE_UPLOAD=1;
-              if [ $SNAPSHOT -ne 1 ]; then
-                # Only for releases and pre-releases.
-                MODE_GZIP=1;
-              fi
-              ;;
-    *)        error "Unknown mode $1";;
-    esac
-    shift
-done

 # Build the source directory.


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