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 4936e99358ca7a8d
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
     1.1 --- a/build-scripts/updaterev.sh	Fri Dec 31 08:40:09 2010 -0800
     1.2 +++ b/build-scripts/updaterev.sh	Fri Dec 31 08:42:47 2010 -0800
     1.3 @@ -7,7 +7,7 @@
     1.4  header=$srcdir/include/SDL_revision.h
     1.5  
     1.6  rev=`sh showrev.sh`
     1.7 -if [ "$rev" != "" ]; then
     1.8 +if [ "$rev" != "" -a "$rev" != "hg-0:baadf00d" ]; then
     1.9      echo "#define SDL_REVISION \"$rev\"" >$header.new
    1.10      if diff $header $header.new >/dev/null 2>&1; then
    1.11          rm $header.new