comparison contrib/make_flys_release/bin/make-importer-package.sh @ 5540:25c2505df28f

Merged
author Christian Lins <christian.lins@intevation.de>
date Wed, 03 Apr 2013 16:00:21 +0200
parents d5e1e4d9559e
children cff1eea9854f
comparison
equal deleted inserted replaced
5539:8d0af912351c 5540:25c2505df28f
2 set -e 2 set -e
3 3
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 # Default conf
9 CONF_DIR=/path/to/conf/dir
10 # Path to the flys checkout 8 # Path to the flys checkout
11 FLYS_DIR=/path/to/flys/root 9 FLYS_DIR=~/flys/flys/
12 # Tarball that will be extracted into flys-imprter/opt 10 # Tarball that will be extracted into flys-imprter/opt
13 EXTRAS=$1 11 EXTRAS=$1
14 12
15 rm -fr $PKG_DIR 13 rm -fr $PKG_DIR
16 mkdir -p $PKG_DIR/hydr_morph 14 mkdir -p $PKG_DIR/hydr_morph
46 cd $PKG_DIR 44 cd $PKG_DIR
47 tar -xzf "$EXTRAS" 45 tar -xzf "$EXTRAS"
48 fi 46 fi
49 47
50 cp ${FLYS_DIR}/flys-backend/doc/schema/*.sql $PKG_DIR/schema 48 cp ${FLYS_DIR}/flys-backend/doc/schema/*.sql $PKG_DIR/schema
51 cp ${FLYS_DIR}/flys-backend/doc/documentation/de/importer-manual.pdf $PKG_DIR 49
50 cd ${FLYS_DIR}/flys-backend/doc/documentation/de/
51 make importer-manual.pdf
52 cp importer-manual.pdf $PKG_DIR
52 53
53 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
54 55
55 cd $PKG_DIR/.. 56 cd $PKG_DIR/..
56 DATE=$(date +%Y%m%d%H%m) 57 DATE=$(date +%Y%m%d%H%M)
57 tar -czf flys-importer_${DATE}.tar.gz flys-importer 58 tar -czf flys-importer_${DATE}.tar.gz flys-importer
58 sha1sum flys-importer_${DATE}.tar.gz > flys-importer_${DATE}.tar.gz.sha1 59 sha1sum flys-importer_${DATE}.tar.gz > flys-importer_${DATE}.tar.gz.sha1
59 echo Package is at: `readlink -f flys-importer_${DATE}.tar.gz` 60 echo Package is at: `readlink -f flys-importer_${DATE}.tar.gz`

http://dive4elements.wald.intevation.org