comparison contrib/make_flys_release/make_release.sh @ 6164:bfec80563325

Fix location of features.xml Woops
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 03 Jun 2013 11:30:18 +0200
parents 233113b02cab
children 8f129977e76e
comparison
equal deleted inserted replaced
6163:233113b02cab 6164:bfec80563325
196 -e "s@http://localhost:8888@http://localhost:$TOMCAT_PORT@g" \ 196 -e "s@http://localhost:8888@http://localhost:$TOMCAT_PORT@g" \
197 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/web.xml 197 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/web.xml
198 198
199 sed -i -e "s@/tmp/flys-client.log@${LOG_DIR}/client-${VERSION}.log@g" \ 199 sed -i -e "s@/tmp/flys-client.log@${LOG_DIR}/client-${VERSION}.log@g" \
200 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/log4j.properties 200 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/log4j.properties
201
202 if [ -r "$FEATURES_XML" ]; then
203 cp "$FEATURES_XML" $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/features.xml
204 fi
201 205
202 # XXX: Are they really used at runtime? 206 # XXX: Are they really used at runtime?
203 find $FLYS_SOURCE_DIR/river/ -name \*.properties -o -name \*.xsl | \ 207 find $FLYS_SOURCE_DIR/river/ -name \*.properties -o -name \*.xsl | \
204 xargs sed -i "s@https://flys-intern.intevation.de@${WIKI_URL}@g"; 208 xargs sed -i "s@https://flys-intern.intevation.de@${WIKI_URL}@g";
205 209
342 346
343 echo "INFO: create h2 database for artifacts and datacage" 347 echo "INFO: create h2 database for artifacts and datacage"
344 $SCRIPT_DIR/h2/createArtifacts.sh $WORK_DIR/artifactsdb/artifacts-h2.sql 348 $SCRIPT_DIR/h2/createArtifacts.sh $WORK_DIR/artifactsdb/artifacts-h2.sql
345 $SCRIPT_DIR/h2/createDatacage.sh $WORK_DIR/datacagedb/datacage.sql 349 $SCRIPT_DIR/h2/createDatacage.sh $WORK_DIR/datacagedb/datacage.sql
346 350
347 if [ -r "$FEATURES_XML" ]; then
348 cp "$FEATURES_XML" $WORK_DIR/server/conf/features.xml
349 fi
350
351 mv $WORK_DIR/artifactsdb $WORK_DIR/server/ 351 mv $WORK_DIR/artifactsdb $WORK_DIR/server/
352 mv $WORK_DIR/datacagedb $WORK_DIR/server/ 352 mv $WORK_DIR/datacagedb $WORK_DIR/server/
353 353
354 echo "INFO: create tarball" 354 echo "INFO: create tarball"
355 mkdir $WORK_DIR/flys-$VERSION 355 mkdir $WORK_DIR/flys-$VERSION

http://dive4elements.wald.intevation.org