Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Updated the snapshot script for use on the website
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 4, 2009
1 parent 05fa892 commit 2e2054a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions build-scripts/snapshot.sh
Expand Up @@ -2,7 +2,8 @@
#
# Generate a current snapshot from source control

svn co http://svn.libsdl.org/trunk/SDL
echo "Checking out source"
svn co -q http://svn.libsdl.org/trunk/SDL
(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
Expand All @@ -18,7 +19,15 @@ rev=`fgrep "#define SDL_REVISION" SDL/include/SDL_revision.h | \
path="SDL-$major.$minor.$patch-$rev"

mv SDL $path
echo $path.tar.gz
tar zcf $path.tar.gz $path
echo $path.zip
rm -f $path.zip
zip -r $path.zip $path
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 2e2054a

Please sign in to comment.