Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Don't overwrite SDL_revision.h with a bad revision if Mercurial isn't…
Browse files Browse the repository at this point in the history
… installed
  • Loading branch information
slouken committed Dec 31, 2010
1 parent 6af4aa6 commit 0d824c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-scripts/updaterev.sh
Expand Up @@ -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
Expand Down

0 comments on commit 0d824c2

Please sign in to comment.