Updated the snapshot script for use on the website
authorSam Lantinga <slouken@libsdl.org>
Sun, 04 Jan 2009 06:32:01 +0000
changeset 2986bb773ff79106
parent 2985 4e4d814884aa
child 2987 5b8865f87df1
Updated the snapshot script for use on the website
build-scripts/snapshot.sh
     1.1 --- a/build-scripts/snapshot.sh	Sun Jan 04 05:52:14 2009 +0000
     1.2 +++ b/build-scripts/snapshot.sh	Sun Jan 04 06:32:01 2009 +0000
     1.3 @@ -2,7 +2,8 @@
     1.4  #
     1.5  # Generate a current snapshot from source control
     1.6  
     1.7 -svn co http://svn.libsdl.org/trunk/SDL
     1.8 +echo "Checking out source"
     1.9 +svn co -q http://svn.libsdl.org/trunk/SDL
    1.10  (cd SDL && ./autogen.sh && rm -rf autom4te.cache)
    1.11  sh SDL/build-scripts/updaterev.sh
    1.12  cp SDL/include/SDL_config.h.default SDL/include/SDL_config.h
    1.13 @@ -18,7 +19,15 @@
    1.14  path="SDL-$major.$minor.$patch-$rev"
    1.15  
    1.16  mv SDL $path
    1.17 +echo $path.tar.gz
    1.18  tar zcf $path.tar.gz $path
    1.19 +echo $path.zip
    1.20  rm -f $path.zip
    1.21 -zip -r $path.zip $path
    1.22 +zip -rq $path.zip $path
    1.23  rm -rf $path
    1.24 +
    1.25 +#ln -sf $path.tar.gz SDL-1.3.tar.gz
    1.26 +#ln -sf $path.zip SDL-1.3.zip
    1.27 +#date=`date +"%a %b %e"`
    1.28 +#sed -e "s/<-- SDL 1.3 DATE -->.*/<-- SDL 1.3 DATE --> $date/" <../svn.php >../svn.php.new
    1.29 +#mv ../svn.php.new ../svn.php