changeset 4936:e99358ca7a8d

Don't overwrite SDL_revision.h with a bad revision if Mercurial isn't installed
author Sam Lantinga <slouken@libsdl.org>
date Fri, 31 Dec 2010 08:42:47 -0800
parents a727eda441be
children 24d44c7c4c63
files build-scripts/updaterev.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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