summaryrefslogtreecommitdiff
path: root/contrib/gcc_update
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2007-08-16 19:05:48 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2007-08-16 12:05:48 -0700
commit36dcf055736e4678921613fa76910cfa0106a6a6 (patch)
treeb7d47e5e1a7de3e9a8be3aaab0ee65aa8cbb6981 /contrib/gcc_update
parent997fea03d7037d99efcb974bffcd7cfc56efee5b (diff)
gcc_update: Use "svn info" for revision number.
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. Co-Authored-By: Andreas Schwab <schwab@suse.de> From-SVN: r127566
Diffstat (limited to 'contrib/gcc_update')
-rwxr-xr-xcontrib/gcc_update13
1 files changed, 12 insertions, 1 deletions
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