Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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

… installed
  • Loading branch information
slouken committed Dec 31, 2010
1 parent 6af4aa6 commit 0d824c291996ec9f9eac77b845de9ef3364edcd4
Showing with 1 addition and 1 deletion.
  1. +1 −1 build-scripts/updaterev.sh
@@ -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

0 comments on commit 0d824c2

Please sign in to comment.