Mercurial > dive4elements > river
comparison contrib/make_flys_release/make_release.sh @ 9744:b1b48fa7bd80 3.2.x
Include both database drivers in one pom.xml
This makes it unnecessary to package for a specific database and makes
it possible to connect to both database backends from the same installation
(e.g. in a Docker container).
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 30 Aug 2022 14:33:20 +0200 |
parents | ca1319d5816d |
children | b57b236c4f4e |
comparison
equal
deleted
inserted
replaced
9743:d1dcb8d28b0d | 9744:b1b48fa7bd80 |
---|---|
35 -w The working directory to use (do not use spaces in path) | 35 -w The working directory to use (do not use spaces in path) |
36 Default: $DEFAULT_WD | 36 Default: $DEFAULT_WD |
37 -t Tag the selected branch with given name. | 37 -t Tag the selected branch with given name. |
38 Note that \$USER is used as the repository user name | 38 Note that \$USER is used as the repository user name |
39 for pushing the tags. | 39 for pushing the tags. |
40 -o, --oracle Release is for oracle. | |
41 TARGET must specify a tag (usually MAYOR.MINOR.PATCH) or a branch name. | 40 TARGET must specify a tag (usually MAYOR.MINOR.PATCH) or a branch name. |
42 EOF | 41 EOF |
43 exit 0 | 42 exit 0 |
44 } | 43 } |
45 # --backend-db-url Url of database backend. Default: $BACKENDURL | 44 # --backend-db-url Url of database backend. Default: $BACKENDURL |
54 # --seddb-back Sediment db backend. Default: $SEDDBBACK | 53 # --seddb-back Sediment db backend. Default: $SEDDBBACK |
55 | 54 |
56 # customizable variables | 55 # customizable variables |
57 ELBE_MODEL_UUID=${ELBE_MODEL_UUID:-1a4825f6-925f-11e3-8165-001f29e71d12} | 56 ELBE_MODEL_UUID=${ELBE_MODEL_UUID:-1a4825f6-925f-11e3-8165-001f29e71d12} |
58 | 57 |
59 OPTS=`getopt -o ?w:,?t:,o \ | 58 OPTS=`getopt -o ?w:,?t: \ |
60 -l help,oracle \ | 59 -l help \ |
61 -n $0 -- "$@"` | 60 -n $0 -- "$@"` |
62 | 61 |
63 if [ $? != 0 ] ; then usage; fi | 62 if [ $? != 0 ] ; then usage; fi |
64 eval set -- "$OPTS" | 63 eval set -- "$OPTS" |
65 while true ; do | 64 while true ; do |
70 shift | 69 shift |
71 break;; | 70 break;; |
72 "-w") | 71 "-w") |
73 WORK_DIR=$2 | 72 WORK_DIR=$2 |
74 shift 2;; | 73 shift 2;; |
75 "-o"|"--oracle") | |
76 BUILD_ORACLE="TRUE" | |
77 shift;; | |
78 "-t") | 74 "-t") |
79 DO_TAG=$2 | 75 DO_TAG=$2 |
80 shift 2;; | 76 shift 2;; |
81 *) | 77 *) |
82 echo "Unknown Option $1" | 78 echo "Unknown Option $1" |
271 | 267 |
272 | 268 |
273 echo "INFO: compile and build sources" | 269 echo "INFO: compile and build sources" |
274 cp $WORK_DIR/wsplgen-linux-64bit-static \ | 270 cp $WORK_DIR/wsplgen-linux-64bit-static \ |
275 $FLYS_SOURCE_DIR/river/artifacts/bin/wsplgen | 271 $FLYS_SOURCE_DIR/river/artifacts/bin/wsplgen |
276 | 272 mvn -f $FLYS_SOURCE_DIR/river/artifacts/pom.xml package assembly:single |
277 if [ "$BUILD_ORACLE" = "TRUE" ]; then | |
278 mvn -f $FLYS_SOURCE_DIR/river/backend/pom-oracle.xml clean compile install | |
279 mvn -f $FLYS_SOURCE_DIR/river/artifacts/pom-oracle.xml \ | |
280 package assembly:single | |
281 else | |
282 mvn -f $FLYS_SOURCE_DIR/river/artifacts/pom.xml package assembly:single | |
283 fi | |
284 mvn -f $FLYS_SOURCE_DIR/river/gwt-client/pom.xml clean compile package | 273 mvn -f $FLYS_SOURCE_DIR/river/gwt-client/pom.xml clean compile package |
285 | 274 |
286 | 275 |
287 echo "INFO: create tarball" | 276 echo "INFO: create tarball" |
288 cd $WORK_DIR | 277 cd $WORK_DIR |