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

Updated the snapshot script for Mercurial

  • Loading branch information
slouken committed Jan 18, 2011
1 parent 4edd0db commit a13a22fae8969c766babefaae819597bb79b012b
Showing with 2 additions and 8 deletions.
  1. +2 −8 build-scripts/snapshot.sh
@@ -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 @@ minor=`fgrep "#define SDL_MINOR_VERSION" SDL/include/SDL_version.h | \
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 @@ echo $path.zip
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

0 comments on commit a13a22f

Please sign in to comment.