summaryrefslogtreecommitdiff
path: root/build-scripts
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2010-12-31 08:42:47 -0800
committerSam Lantinga <slouken@libsdl.org>2010-12-31 08:42:47 -0800
commitb0b0c5e0e9c100fb44970590bab532084caf0c07 (patch)
tree2a86b84292c8d3aed7cf351488042ebe8ec53e6b /build-scripts
parent0db1eb56523929e74b9cdbcf44b6292f46e6f3b3 (diff)
Don't overwrite SDL_revision.h with a bad revision if Mercurial isn't installed
Diffstat (limited to 'build-scripts')
-rwxr-xr-xbuild-scripts/updaterev.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-scripts/updaterev.sh b/build-scripts/updaterev.sh
index 1ee11e0c..484fd431 100755
--- a/build-scripts/updaterev.sh
+++ b/build-scripts/updaterev.sh
@@ -7,7 +7,7 @@ srcdir=..
header=$srcdir/include/SDL_revision.h
rev=`sh showrev.sh`
-if [ "$rev" != "" ]; then
+if [ "$rev" != "" -a "$rev" != "hg-0:baadf00d" ]; then
echo "#define SDL_REVISION \"$rev\"" >$header.new
if diff $header $header.new >/dev/null 2>&1; then
rm $header.new