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
This commit is contained in:
H.J. Lu 2007-08-16 19:05:48 +00:00 committed by H.J. Lu
parent 997fea03d7
commit 36dcf05573
2 changed files with 18 additions and 1 deletions

View 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.

View File

@ -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