Mercurial > sdl-ios-xcode
diff build-scripts/showrev.sh @ 4419:5e7e1f1a4056
Changed revision details to be a string (an hg changeset) instead of an int.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sun, 28 Feb 2010 02:07:40 -0500 |
parents | 00cace2d9080 |
children | fa77a6429698 |
line wrap: on
line diff
--- a/build-scripts/showrev.sh Sun Feb 28 02:06:47 2010 -0500 +++ b/build-scripts/showrev.sh Sun Feb 28 02:07:40 2010 -0500 @@ -2,14 +2,7 @@ # # Print the current source revision, if available -srcdir=`dirname $0`/.. +# FIXME: this prints the tip, which isn't useful if you're on a different +# branch, or just not sync'd to the tip. +hg tip --template 'hg-{rev}:{node|short}' -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,' -else - cd $srcdir - git svn info | grep Revision | awk '{ print $2 }' -fi