view build-scripts/showrev.sh @ 3073:c5280d33c32a

NDS compiles again, but may not yet work. Sprite support has been removed for the time being while it is re-worked.
author Darren Alton <dalton@stevens.edu>
date Wed, 18 Feb 2009 00:33:31 +0000
parents 4c092987234b
children da6cbfa5b5f2
line wrap: on
line source

#!/bin/sh
#
# Print the current source revision, if available

srcdir=`dirname $0`/..

if [ -d $srcdir/.svn ]; then
    cd $srcdir
    (svnversion -c 2>/dev/null || svnversion .) | \
        sed -e 's,\([0-9]*\)[A-Z]*,\1,' \
            -e 's,[0-9]*:\([0-9]*\)[A-Z]*,\1,'
fi