comparison contrib/make_flys_release/make_release.sh @ 4503:f91260ccef03

Fixed typo in make_release script.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 14 Nov 2012 12:36:30 +0100
parents 334c68344eb5
children 83a42e6a562d
comparison
equal deleted inserted replaced
4494:334c68344eb5 4503:f91260ccef03
12 PREFIX="flys-" 12 PREFIX="flys-"
13 RELEASE=${RELEASE:-default} 13 RELEASE=${RELEASE:-default}
14 RELEASE_DATE=`date +'%Y-%m-%d'` 14 RELEASE_DATE=`date +'%Y-%m-%d'`
15 DIRECTORY=$PREFIX$RELEASE-$RELEASE_DATE 15 DIRECTORY=$PREFIX$RELEASE-$RELEASE_DATE
16 16
17 ARTEFACT_PORT=${ARTEFACT_PORT:-9002} 17 ARTIFACT_PORT=${ARTIFACT_PORT:-9002}
18 TOMCAT_PORT=${TOMCAT_PORT:-8005} 18 TOMCAT_PORT=${TOMCAT_PORT:-8005}
19 19
20 MAPSERVER_URL=${MAPSERVER_URL:-czech-republic.intevation.de} 20 MAPSERVER_URL=${MAPSERVER_URL:-czech-republic.intevation.de}
21 21
22 echo "INFO: create server directories" 22 echo "INFO: create server directories"
42 (cd $FLYS_HG && hg co $RELEASE) 42 (cd $FLYS_HG && hg co $RELEASE)
43 43
44 # adapt client configuration 44 # adapt client configuration
45 echo "INFO: prepare configuration of web client" 45 echo "INFO: prepare configuration of web client"
46 46
47 sed -i -e "s@http://localhost:8181@http://localhost:$ARTEFACT_PORT@g" \ 47 sed -i -e "s@http://localhost:8181@http://localhost:$ARTIFACT_PORT@g" \
48 -e "s@http://localhost:8888@http://localhost:$TOMCAT_PORT@g" \ 48 -e "s@http://localhost:8888@http://localhost:$TOMCAT_PORT@g" \
49 $FLYS_HG/flys-client/src/main/webapp/WEB-INF/web.xml 49 $FLYS_HG/flys-client/src/main/webapp/WEB-INF/web.xml
50 50
51 sed -i -e "s@/tmp/flys-client.log@/tmp/flys-client-${RELEASE}.log@g" \ 51 sed -i -e "s@/tmp/flys-client.log@/tmp/flys-client-${RELEASE}.log@g" \
52 $FLYS_HG/flys-client/src/main/webapp/WEB-INF/log4j.properties 52 $FLYS_HG/flys-client/src/main/webapp/WEB-INF/log4j.properties
62 62
63 # compile and build our code stuff 63 # compile and build our code stuff
64 echo "INFO: compile and build sources" 64 echo "INFO: compile and build sources"
65 mvn -f $ARTIFACTS_HG/pom.xml clean compile package install 65 mvn -f $ARTIFACTS_HG/pom.xml clean compile package install
66 mvn -f $FLYS_HG/flys-backend/pom.xml clean compile package install 66 mvn -f $FLYS_HG/flys-backend/pom.xml clean compile package install
67 mvn -f $FLYS_HG/flys-artifacts/pom.xml clean compile package dependency:copy-dependencies 67 mvn -f $FLYS_HG/flys-artifacts/pom.xml clean compile package dependency:copy-dependencies install
68 mvn -f $HTTPCLIENT_HG/pom.xml clean compile package install 68 mvn -f $HTTPCLIENT_HG/pom.xml clean compile package install
69 mvn -f $FLYS_HG/flys-client/pom.xml clean compile package 69 mvn -f $FLYS_HG/flys-client/pom.xml clean compile package
70 70
71 ## fetch the java stuff 71 ## fetch the java stuff
72 echo "INFO: copy dependencies and libs" 72 echo "INFO: copy dependencies and libs"
96 cp -R $FLYS_HG/flys-artifacts/doc/conf $DIRECTORY/server/ 96 cp -R $FLYS_HG/flys-artifacts/doc/conf $DIRECTORY/server/
97 97
98 #cp confs/* $DIRECTORY/server/conf/ 98 #cp confs/* $DIRECTORY/server/conf/
99 mkdir -o $DIRECTORY/server/conf 99 mkdir -o $DIRECTORY/server/conf
100 100
101 sed "s/8999/$ARTEFACT_PORT/g" \ 101 sed "s/8999/$ARTIFACT_PORT/g" \
102 confs/rest-server.xml \ 102 confs/rest-server.xml \
103 > $DIRECTORY/server/conf/rest-server.xml 103 > $DIRECTORY/server/conf/rest-server.xml
104 104
105 sed "s@http://czech-republic.intevation.de/@http://${MAPSERVER_URL}/@g" \ 105 sed "s@http://czech-republic.intevation.de/@http://${MAPSERVER_URL}/@g" \
106 "s@flys-default@flys-$RELEASE@g" \ 106 "s@flys-default@flys-$RELEASE@g" \

http://dive4elements.wald.intevation.org