Commit b0b0c5e0 authored by Sam Lantinga's avatar Sam Lantinga

Don't overwrite SDL_revision.h with a bad revision if Mercurial isn't installed

parent 0db1eb56
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment