comparison 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
comparison
equal deleted inserted replaced
4150:0f60efc39953 4151:0182916dcb01
9 ARTIFACTS_HG="hg.artifacts" 9 ARTIFACTS_HG="hg.artifacts"
10 HTTPCLIENT_HG="hg.http-client" 10 HTTPCLIENT_HG="hg.http-client"
11 FLYS_HG="hg.flys" 11 FLYS_HG="hg.flys"
12 12
13 PREFIX="flys-" 13 PREFIX="flys-"
14 RELEASE="default" 14 RELEASE=default
15 DIRECTORY=$PREFIX$RELEASE 15 RELEASE_DATE=`date +'%Y-%m-%d'`
16 DIRECTORY=$PREFIX$RELEASE_DATE
16 17
17 echo "INFO: create server directories" 18 echo "INFO: create server directories"
18 mkdir $DIRECTORY 19 mkdir -p $DIRECTORY/server/bin/lib/own
19 mkdir $DIRECTORY/server
20 mkdir $DIRECTORY/server/bin
21 mkdir $DIRECTORY/server/bin/lib
22 mkdir $DIRECTORY/server/bin/lib/own
23 mkdir $DIRECTORY/server/shapefiles 20 mkdir $DIRECTORY/server/shapefiles
24 mkdir $DIRECTORY/client 21 mkdir $DIRECTORY/client
25 22
26 echo "INFO: checkout sources" 23 echo "INFO: checkout sources"
27 echo " ... checkout $ARTIFACTS_HG_REPO" 24 echo " ... checkout $ARTIFACTS_HG_REPO"
41 cp confs/web.xml $FLYS_HG/flys-client/src/main/webapp/WEB-INF/web.xml 38 cp confs/web.xml $FLYS_HG/flys-client/src/main/webapp/WEB-INF/web.xml
42 39
43 echo "INFO: download OpenLayers-2.11 for client" 40 echo "INFO: download OpenLayers-2.11 for client"
44 curl -O http://openlayers.org/download/OpenLayers-2.11.tar.gz 41 curl -O http://openlayers.org/download/OpenLayers-2.11.tar.gz
45 tar xvfz OpenLayers-2.11.tar.gz 42 tar xvfz OpenLayers-2.11.tar.gz
43 # TODO: Remove more superfluous OpenLayers stuff.
44 rm -rf OpenLayers-2.11/doc
45 rm -rf OpenLayers-2.11/tests
46 rm -rf OpenLayers-2.11/examples
46 mv OpenLayers-2.11 $FLYS_HG/flys-client/src/main/webapp/ 47 mv OpenLayers-2.11 $FLYS_HG/flys-client/src/main/webapp/
47 48
48 # compile and build our code stuff 49 # compile and build our code stuff
49 echo "INFO: compile and build sources" 50 echo "INFO: compile and build sources"
50 mvn -f $ARTIFACTS_HG/pom.xml clean compile package 51 mvn -f $ARTIFACTS_HG/pom.xml clean compile package

http://dive4elements.wald.intevation.org