OSDN Git Service

* gcc_release: Correct logic for updating version.c. Put
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Aug 2003 16:27:14 +0000 (16:27 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Aug 2003 16:27:14 +0000 (16:27 +0000)
prereleases into a subdirectory.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70252 138bc75d-0d04-0410-961f-82ee72b054a4

maintainer-scripts/ChangeLog
maintainer-scripts/gcc_release

index 4d1ddfc..b90c002 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-08  Mark Mitchell  <mark@codesourcery.com>
+
+       * gcc_release: Correct logic for updating version.c.  Put
+       prereleases into a subdirectory.
+
 2003-07-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
 
        * crontab: Update invocation of gcc_release according to the
index 2966b6e..87d3d9c 100755 (executable)
@@ -144,7 +144,7 @@ EOF
     for x in gcc/version.c; do 
       y=`basename ${x}`
       (changedir `dirname ${SOURCE_DIRECTORY}/${x}` && \
-          sed -e 's|= \".*\"|= \"'${RELEASE}'\"|g' < ${y} > ${y}.new && \
+          sed -e 's|version_string\[\] = \".*\"|version_string\[\] = \"'${RELEASE}'\"|g' < ${y} > ${y}.new && \
          mv ${y}.new ${y} && \
           ${CVS} ci -m 'Update version' ${y}) || \
          error "Could not update ${x}"
@@ -583,7 +583,7 @@ if [ $SNAPSHOT -eq 0 ]; then
   # If this is not a final release, set various parameters acordingly.
   if [ ${FINAL} -ne 1 ]; then
     RELEASE="${RELEASE}-${DATE}"
-    FTP_PATH="${FTP_PATH}/snapshots/"
+    FTP_PATH="${FTP_PATH}/prerelease-${RELEASE}/"
   else
     FTP_PATH="${FTP_PATH}/releases/gcc-${RELEASE}/"
   fi