summaryrefslogtreecommitdiff
path: root/build-scripts
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2009-01-04 06:32:01 +0000
committerSam Lantinga <slouken@libsdl.org>2009-01-04 06:32:01 +0000
commit09a715e76900e1b2360c95eb4f9ceafcdba79963 (patch)
tree9acbdd9a8af990cb46f89ae43fe22defd523e643 /build-scripts
parent6e89ce1c4a98d50444cb937533fd57ce0ec39345 (diff)
Updated the snapshot script for use on the website
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403448
Diffstat (limited to 'build-scripts')
-rwxr-xr-xbuild-scripts/snapshot.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/build-scripts/snapshot.sh b/build-scripts/snapshot.sh
index 9eba3b67..a4132cec 100755
--- a/build-scripts/snapshot.sh
+++ b/build-scripts/snapshot.sh
@@ -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
@@ -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