Make the current revision number available
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403444
This commit is contained in:
parent
1a8812eeb6
commit
0fde9f06da
6 changed files with 73 additions and 10 deletions
17
build-scripts/updaterev.sh
Executable file
17
build-scripts/updaterev.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Generate a header file with the current source revision
|
||||
|
||||
cd `dirname $0`
|
||||
srcdir=..
|
||||
header=$srcdir/include/SDL_revision.h
|
||||
|
||||
rev=`sh showrev.sh`
|
||||
if [ "$rev" != "" ]; then
|
||||
echo "#define SDL_REVISION $rev" >$header.new
|
||||
if diff $header $header.new >/dev/null 2>&1; then
|
||||
rm $header.new
|
||||
else
|
||||
mv $header.new $header
|
||||
fi
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue