comparison contrib/make_flys_release/make_release.sh @ 9778:b57b236c4f4e 3.2.x

Backed out changeset b1b48fa7bd80 It turns out that, while this works for PostgreSQL/PostGIS, it does not with Oracle. Hibernatespatial tries to map spatial types to PostGIS hibernate types in both cases.
author Tom Gottfried <tom@intevation.de>
date Mon, 06 Feb 2023 16:57:03 +0100
parents b1b48fa7bd80
children 3847836c60b5
comparison
equal deleted inserted replaced
9777:f98e5c7775d2 9778:b57b236c4f4e
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.
40 TARGET must specify a tag (usually MAYOR.MINOR.PATCH) or a branch name. 41 TARGET must specify a tag (usually MAYOR.MINOR.PATCH) or a branch name.
41 EOF 42 EOF
42 exit 0 43 exit 0
43 } 44 }
44 # --backend-db-url Url of database backend. Default: $BACKENDURL 45 # --backend-db-url Url of database backend. Default: $BACKENDURL
53 # --seddb-back Sediment db backend. Default: $SEDDBBACK 54 # --seddb-back Sediment db backend. Default: $SEDDBBACK
54 55
55 # customizable variables 56 # customizable variables
56 ELBE_MODEL_UUID=${ELBE_MODEL_UUID:-1a4825f6-925f-11e3-8165-001f29e71d12} 57 ELBE_MODEL_UUID=${ELBE_MODEL_UUID:-1a4825f6-925f-11e3-8165-001f29e71d12}
57 58
58 OPTS=`getopt -o ?w:,?t: \ 59 OPTS=`getopt -o ?w:,?t:,o \
59 -l help \ 60 -l help,oracle \
60 -n $0 -- "$@"` 61 -n $0 -- "$@"`
61 62
62 if [ $? != 0 ] ; then usage; fi 63 if [ $? != 0 ] ; then usage; fi
63 eval set -- "$OPTS" 64 eval set -- "$OPTS"
64 while true ; do 65 while true ; do
69 shift 70 shift
70 break;; 71 break;;
71 "-w") 72 "-w")
72 WORK_DIR=$2 73 WORK_DIR=$2
73 shift 2;; 74 shift 2;;
75 "-o"|"--oracle")
76 BUILD_ORACLE="TRUE"
77 shift;;
74 "-t") 78 "-t")
75 DO_TAG=$2 79 DO_TAG=$2
76 shift 2;; 80 shift 2;;
77 *) 81 *)
78 echo "Unknown Option $1" 82 echo "Unknown Option $1"
267 271
268 272
269 echo "INFO: compile and build sources" 273 echo "INFO: compile and build sources"
270 cp $WORK_DIR/wsplgen-linux-64bit-static \ 274 cp $WORK_DIR/wsplgen-linux-64bit-static \
271 $FLYS_SOURCE_DIR/river/artifacts/bin/wsplgen 275 $FLYS_SOURCE_DIR/river/artifacts/bin/wsplgen
272 mvn -f $FLYS_SOURCE_DIR/river/artifacts/pom.xml package assembly:single 276
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
273 mvn -f $FLYS_SOURCE_DIR/river/gwt-client/pom.xml clean compile package 284 mvn -f $FLYS_SOURCE_DIR/river/gwt-client/pom.xml clean compile package
274 285
275 286
276 echo "INFO: create tarball" 287 echo "INFO: create tarball"
277 cd $WORK_DIR 288 cd $WORK_DIR

http://dive4elements.wald.intevation.org