Make the current revision number available

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403444
This commit is contained in:
Sam Lantinga 2009-01-04 05:08:12 +00:00
parent 1a8812eeb6
commit 0fde9f06da
6 changed files with 73 additions and 10 deletions

10
build-scripts/showrev.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
#
# Print the current source revision, if available
srcdir=`dirname $0`/..
if [ -d $srcdir/.svn ]; then
cd $srcdir
svnversion -c | sed -e 's,[0-9]*:\([0-9]*\)[A-Z]*,\1,'
fi