# HG changeset patch # User Sam Lantinga # Date 1295389270 28800 # Node ID 64a2d8f538a1cd2ab833a2361f67897bf13543e3 # Parent 342b158efbbe73b9757613c8eb360e76e3a73ad8 Updated the snapshot script for Mercurial diff -r 342b158efbbe -r 64a2d8f538a1 build-scripts/snapshot.sh --- a/build-scripts/snapshot.sh Tue Jan 18 10:57:28 2011 -0800 +++ b/build-scripts/snapshot.sh Tue Jan 18 14:21:10 2011 -0800 @@ -3,7 +3,7 @@ # Generate a current snapshot from source control echo "Checking out source" -svn co -q http://svn.libsdl.org/trunk/SDL +hg clone http://hg.libsdl.org/SDL || exit $? (cd SDL && ./autogen.sh && rm -rf autom4te.cache) sh SDL/build-scripts/updaterev.sh cp SDL/include/SDL_config.h.default SDL/include/SDL_config.h @@ -15,7 +15,7 @@ patch=`fgrep "#define SDL_PATCHLEVEL" SDL/include/SDL_version.h | \ sed 's,[^0-9]*\([0-9]*\),\1,'` rev=`fgrep "#define SDL_REVISION" SDL/include/SDL_revision.h | \ - sed 's,[^0-9]*\([0-9]*\),\1,'` + sed 's,[^0-9]*\([0-9]*\):.*,\1,'` path="SDL-$major.$minor.$patch-$rev" mv SDL $path @@ -25,9 +25,3 @@ rm -f $path.zip zip -rq $path.zip $path rm -rf $path - -#ln -sf $path.tar.gz SDL-1.3.tar.gz -#ln -sf $path.zip SDL-1.3.zip -#date=`date +"%a %b %e"` -#sed -e "s/<-- SDL 1.3 DATE -->.*/<-- SDL 1.3 DATE --> $date/" <../svn.php >../svn.php.new -#mv ../svn.php.new ../svn.php