Updated the snapshot script for Mercurial
authorSam Lantinga <slouken@libsdl.org>
Tue, 18 Jan 2011 14:21:10 -0800
changeset 501964a2d8f538a1
parent 5018 342b158efbbe
child 5020 6dfc9c4a9ae5
Updated the snapshot script for Mercurial
build-scripts/snapshot.sh
     1.1 --- a/build-scripts/snapshot.sh	Tue Jan 18 10:57:28 2011 -0800
     1.2 +++ b/build-scripts/snapshot.sh	Tue Jan 18 14:21:10 2011 -0800
     1.3 @@ -3,7 +3,7 @@
     1.4  # Generate a current snapshot from source control
     1.5  
     1.6  echo "Checking out source"
     1.7 -svn co -q http://svn.libsdl.org/trunk/SDL
     1.8 +hg clone http://hg.libsdl.org/SDL || exit $?
     1.9  (cd SDL && ./autogen.sh && rm -rf autom4te.cache)
    1.10  sh SDL/build-scripts/updaterev.sh
    1.11  cp SDL/include/SDL_config.h.default SDL/include/SDL_config.h
    1.12 @@ -15,7 +15,7 @@
    1.13  patch=`fgrep "#define SDL_PATCHLEVEL" SDL/include/SDL_version.h | \
    1.14         sed 's,[^0-9]*\([0-9]*\),\1,'`
    1.15  rev=`fgrep "#define SDL_REVISION" SDL/include/SDL_revision.h | \
    1.16 -       sed 's,[^0-9]*\([0-9]*\),\1,'`
    1.17 +       sed 's,[^0-9]*\([0-9]*\):.*,\1,'`
    1.18  path="SDL-$major.$minor.$patch-$rev"
    1.19  
    1.20  mv SDL $path
    1.21 @@ -25,9 +25,3 @@
    1.22  rm -f $path.zip
    1.23  zip -rq $path.zip $path
    1.24  rm -rf $path
    1.25 -
    1.26 -#ln -sf $path.tar.gz SDL-1.3.tar.gz
    1.27 -#ln -sf $path.zip SDL-1.3.zip
    1.28 -#date=`date +"%a %b %e"`
    1.29 -#sed -e "s/<-- SDL 1.3 DATE -->.*/<-- SDL 1.3 DATE --> $date/" <../svn.php >../svn.php.new
    1.30 -#mv ../svn.php.new ../svn.php