SDL-mirror/build-scripts/showrev.sh

11 lines
193 B
Bash
Raw Normal View History

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