aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorhjl <>2007-08-16 18:05:48 +0000
committerhjl <>2007-08-16 18:05:48 +0000
commit122e33fd4436648c3f764d0d3fa1d4b3576d78d7 (patch)
treeb7d47e5e1a7de3e9a8be3aaab0ee65aa8cbb6981 /contrib
parent16d70734878be8fea0f3edb4b32e1843bc608ae9 (diff)
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.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog6
-rwxr-xr-xcontrib/gcc_update13
2 files changed, 18 insertions, 1 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 0b26ea6a57c..ca243b07818 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -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.
diff --git a/contrib/gcc_update b/contrib/gcc_update
index dc12c602afa..7eb839dc687 100755
--- a/contrib/gcc_update
+++ b/contrib/gcc_update
@@ -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