Don't overwrite SDL_revision.h with a bad revision if Mercurial isn't installed
authorSam Lantinga <slouken@libsdl.org>
Fri, 31 Dec 2010 08:42:47 -0800
changeset 4936 e99358ca7a8d
parent 4935 a727eda441be
child 4937 24d44c7c4c63
Don't overwrite SDL_revision.h with a bad revision if Mercurial isn't installed
build-scripts/updaterev.sh
--- a/build-scripts/updaterev.sh	Fri Dec 31 08:40:09 2010 -0800
+++ b/build-scripts/updaterev.sh	Fri Dec 31 08:42:47 2010 -0800
@@ -7,7 +7,7 @@
 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