mirror of
https://github.com/yawut/SDL.git
synced 2026-08-24 09:45:09 -05:00
Changed revision details to be a string (an hg changeset) instead of an int.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -8,7 +8,7 @@ header=$srcdir/include/SDL_revision.h
|
||||
|
||||
rev=`sh showrev.sh`
|
||||
if [ "$rev" != "" ]; then
|
||||
echo "#define SDL_REVISION $rev" >$header.new
|
||||
echo "#define SDL_REVISION \"$rev\"" >$header.new
|
||||
if diff $header $header.new >/dev/null 2>&1; then
|
||||
rm $header.new
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user