build-scripts/updaterev.sh
changeset 5310 a9945ce48999
parent 4936 e99358ca7a8d
child 5345 0202f62906ca
--- a/build-scripts/updaterev.sh	Wed Feb 16 01:40:44 2011 -0800
+++ b/build-scripts/updaterev.sh	Wed Feb 16 02:37:09 2011 -0800
@@ -2,9 +2,10 @@
 #
 # Generate a header file with the current source revision
 
+outdir=`pwd`
 cd `dirname $0`
 srcdir=..
-header=$srcdir/include/SDL_revision.h
+header=$outdir/include/SDL_revision.h
 
 rev=`sh showrev.sh`
 if [ "$rev" != "" -a "$rev" != "hg-0:baadf00d" ]; then