mirror of
https://github.com/yawut/SDL.git
synced 2026-09-08 17:16:19 -05:00
Make the current revision number available
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user