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