comparison contrib/make_flys_release/bin/make-importer-package.sh @ 5855:cff1eea9854f

adjust importer build-script to new names
author Tom Gottfried <tom.gottfried@intevation.de>
date Fri, 26 Apr 2013 18:13:58 +0200
parents d5e1e4d9559e
children e41059fb4073
comparison
equal deleted inserted replaced
5854:249b8766a178 5855:cff1eea9854f
4 # See README for more information 4 # See README for more information
5 5
6 # The working directory. Resulting tarball will be placed in the directory above. 6 # The working directory. Resulting tarball will be placed in the directory above.
7 PKG_DIR=~/tmp/flys-importer 7 PKG_DIR=~/tmp/flys-importer
8 # Path to the flys checkout 8 # Path to the flys checkout
9 FLYS_DIR=~/flys/flys/ 9 FLYS_DIR=~/flys/river/
10 # Tarball that will be extracted into flys-imprter/opt 10 # Tarball that will be extracted into flys-importer/opt
11 EXTRAS=$1 11 EXTRAS=$1
12 12
13 rm -fr $PKG_DIR 13 rm -fr $PKG_DIR
14 mkdir -p $PKG_DIR/hydr_morph 14 mkdir -p $PKG_DIR/hydr_morph
15 mkdir -p $PKG_DIR/geodaesie 15 mkdir -p $PKG_DIR/geodaesie
25 log4j.appender.IMPORTER.File=./import.log 25 log4j.appender.IMPORTER.File=./import.log
26 log4j.appender.IMPORTER.MaxFileSize=100000KB 26 log4j.appender.IMPORTER.MaxFileSize=100000KB
27 log4j.appender.IMPORTER.MaxBackupIndex=10 27 log4j.appender.IMPORTER.MaxBackupIndex=10
28 EOF 28 EOF
29 29
30 cd ${FLYS_DIR}/flys-backend 30 cd ${FLYS_DIR}/backend
31 mvn -f pom-oracle.xml clean compile assembly:single 31 mvn -f pom-oracle.xml clean compile assembly:single
32 cp target/flys-backend-1.0-SNAPSHOT-jar-with-dependencies.jar \ 32 cp target/backend-1.0-SNAPSHOT-jar-with-dependencies.jar \
33 $PKG_DIR/hydr_morph/importer.jar 33 $PKG_DIR/hydr_morph/importer.jar
34 mvn -f pom.xml clean compile assembly:single 34 mvn -f pom.xml clean compile assembly:single
35 cp target/flys-backend-1.0-SNAPSHOT-jar-with-dependencies.jar \ 35 cp target/river-backend-1.0-SNAPSHOT-jar-with-dependencies.jar \
36 $PKG_DIR/hydr_morph/importer_psql.jar 36 $PKG_DIR/hydr_morph/importer_psql.jar
37 cp ${FLYS_DIR}/flys-backend/contrib/shpimporter/*.py $PKG_DIR/geodaesie 37 cp ${FLYS_DIR}/backend/contrib/shpimporter/*.py $PKG_DIR/geodaesie
38 cp ${FLYS_DIR}/flys-backend/contrib/run_geo.sh \ 38 cp ${FLYS_DIR}/backend/contrib/run_geo.sh \
39 ${FLYS_DIR}/flys-backend/contrib/run_hydr_morph.sh \ 39 ${FLYS_DIR}/backend/contrib/run_hydr_morph.sh \
40 ${FLYS_DIR}/flys-backend/contrib/import_river.sh \ 40 ${FLYS_DIR}/backend/contrib/import_river.sh \
41 $PKG_DIR 41 $PKG_DIR
42 cp ${FLYS_DIR}/flys-backend/doc/annotation-types.xml $PKG_DIR/conf 42 cp ${FLYS_DIR}/backend/doc/annotation-types.xml $PKG_DIR/conf
43 if [ -f "$EXTRAS" ]; then 43 if [ -f "$EXTRAS" ]; then
44 cd $PKG_DIR 44 cd $PKG_DIR
45 tar -xzf "$EXTRAS" 45 tar -xzf "$EXTRAS"
46 fi 46 fi
47 47
48 cp ${FLYS_DIR}/flys-backend/doc/schema/*.sql $PKG_DIR/schema 48 cp ${FLYS_DIR}/backend/doc/schema/*.sql $PKG_DIR/schema
49 49
50 cd ${FLYS_DIR}/flys-backend/doc/documentation/de/ 50 cd ${FLYS_DIR}/backend/doc/documentation/de/
51 make importer-manual.pdf 51 make importer-manual.pdf
52 cp importer-manual.pdf $PKG_DIR 52 cp importer-manual.pdf $PKG_DIR
53 53
54 sed -i 's/shpimporter\/shp/geodaesie\/shp/' $PKG_DIR/run_geo.sh 54 sed -i 's/shpimporter\/shp/geodaesie\/shp/' $PKG_DIR/run_geo.sh
55 55

http://dive4elements.wald.intevation.org