diff contrib/make_flys_release/make_release.sh @ 4151:0182916dcb01

Added date to release package. strip OpenLayers a bit
author Sascha L. Teichmann <teichmann@intevation.de>
date Tue, 16 Oct 2012 12:25:48 +0200
parents 9d404069f361
children 7e82d51c5a27
line wrap: on
line diff
--- a/contrib/make_flys_release/make_release.sh	Tue Oct 16 12:17:53 2012 +0200
+++ b/contrib/make_flys_release/make_release.sh	Tue Oct 16 12:25:48 2012 +0200
@@ -11,15 +11,12 @@
 FLYS_HG="hg.flys"
 
 PREFIX="flys-"
-RELEASE="default"
-DIRECTORY=$PREFIX$RELEASE
+RELEASE=default
+RELEASE_DATE=`date +'%Y-%m-%d'`
+DIRECTORY=$PREFIX$RELEASE_DATE
 
 echo "INFO: create server directories"
-mkdir $DIRECTORY
-mkdir $DIRECTORY/server
-mkdir $DIRECTORY/server/bin
-mkdir $DIRECTORY/server/bin/lib
-mkdir $DIRECTORY/server/bin/lib/own
+mkdir -p $DIRECTORY/server/bin/lib/own
 mkdir $DIRECTORY/server/shapefiles
 mkdir $DIRECTORY/client
 
@@ -43,6 +40,10 @@
 echo "INFO: download OpenLayers-2.11 for client"
 curl -O http://openlayers.org/download/OpenLayers-2.11.tar.gz
 tar xvfz OpenLayers-2.11.tar.gz
+# TODO: Remove more superfluous OpenLayers stuff.
+rm -rf OpenLayers-2.11/doc
+rm -rf OpenLayers-2.11/tests
+rm -rf OpenLayers-2.11/examples
 mv OpenLayers-2.11 $FLYS_HG/flys-client/src/main/webapp/
 
 # compile and build our code stuff

http://dive4elements.wald.intevation.org