From 36dcf055736e4678921613fa76910cfa0106a6a6 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 16 Aug 2007 19:05:48 +0000 Subject: gcc_update: Use "svn info" for revision number. 2007-08-16 H.J. Lu Andreas Schwab * gcc_update: Use "svn info" for revision number. Create gcc/REVISION with branch name and revision number. Co-Authored-By: Andreas Schwab From-SVN: r127566 --- contrib/ChangeLog | 6 ++++++ contrib/gcc_update | 13 ++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 0b26ea6..ca243b0 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,9 @@ +2007-08-16 H.J. Lu + Andreas Schwab + + * gcc_update: Use "svn info" for revision number. Create + gcc/REVISION with branch name and revision number. + 2007-08-10 Diego Novillo * gcc.doxy: Rename from tree-ssa.doxy. diff --git a/contrib/gcc_update b/contrib/gcc_update index dc12c60..7eb839d 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 -- cgit v1.1