2007-08-16 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Aug 2007 19:05:48 +0000 (19:05 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Aug 2007 19:05:48 +0000 (19:05 +0000)
    Andreas Schwab <schwab@suse.de>

* gcc_update: Use "svn info" for revision number.  Create
gcc/REVISION with branch name and revision number.

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

contrib/ChangeLog
contrib/gcc_update

index 0b26ea6..ca243b0 100644 (file)
@@ -1,3 +1,9 @@
+2007-08-16  H.J. Lu  <hongjiu.lu@intel.com>
+           Andreas Schwab <schwab@suse.de>
+
+       * gcc_update: Use "svn info" for revision number.  Create
+       gcc/REVISION with branch name and revision number.
+
 2007-08-10  Diego Novillo  <dnovillo@google.com>
 
        * gcc.doxy: Rename from tree-ssa.doxy.
index dc12c60..7eb839d 100755 (executable)
@@ -258,8 +258,19 @@ if [ $? -ne 0 ]; then
     exit 1
 fi
 
+rm -f LAST_UPDATED gcc/REVISION
+
+revision=`svn info | awk '/Revision:/ { print $2 }'`
+branch=`svn info | sed -ne "/URL:/ {
+s,.*/gcc/,,g
+s,branches/,,
+p
+}"`
 {
   date
-  echo "`TZ=UTC date` (revision `svnversion .`)"
+  echo "`TZ=UTC date` (revision $revision)"
 } > LAST_UPDATED
+
+echo "[$branch revision $revision]" > gcc/REVISION
+
 touch_files_reexec