Don't overwrite SDL_revision.h with a bad revision if Mercurial isn't installed
This commit is contained in:
parent
0db1eb5652
commit
b0b0c5e0e9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue