mirror of
https://github.com/yawut/SDL.git
synced 2026-04-20 23:57:24 -05:00
Don't overwrite SDL_revision.h with a bad revision if Mercurial isn't installed
This commit is contained in:
parent
3297160f92
commit
aa5a16bfef
|
|
@ -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…
Reference in New Issue
Block a user