diff options
author | Sam Lantinga <slouken@libsdl.org> | 2010-12-31 08:42:47 -0800 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2010-12-31 08:42:47 -0800 |
commit | b0b0c5e0e9c100fb44970590bab532084caf0c07 (patch) | |
tree | 2a86b84292c8d3aed7cf351488042ebe8ec53e6b /build-scripts | |
parent | 0db1eb56523929e74b9cdbcf44b6292f46e6f3b3 (diff) |
Don't overwrite SDL_revision.h with a bad revision if Mercurial isn't installed
Diffstat (limited to 'build-scripts')
-rwxr-xr-x | build-scripts/updaterev.sh | 2 |
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 |