SDL-mirror/build-scripts/showrev.sh
Sam Lantinga 0fde9f06da Make the current revision number available
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403444
2009-01-04 05:08:12 +00:00

10 lines
193 B
Bash
Executable file

#!/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