Mercurial > dive4elements > river
comparison contrib/make_flys_release/bin/make-importer-package.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 |
---|---|
23 | 23 |
24 Create a D4E River Importer-package | 24 Create a D4E River Importer-package |
25 | 25 |
26 OPTIONS: | 26 OPTIONS: |
27 -?, --help Show this message | 27 -?, --help Show this message |
28 -o, --oracle Package is for Oracle. | |
28 VERSION must specify a tag (usually MAYOR.MINOR.PATCH) or a branch name. | 29 VERSION must specify a tag (usually MAYOR.MINOR.PATCH) or a branch name. |
29 With EXTRAS, a tarball with dependencies can be given. | 30 With EXTRAS, a tarball with dependencies can be given. |
30 EOF | 31 EOF |
31 exit 0 | 32 exit 0 |
32 } | 33 } |
33 | 34 |
34 OPTS=`getopt -o ? -l help -n $0 -- "$@"` | 35 OPTS=`getopt -o ?,o -l help,oracle -n $0 -- "$@"` |
35 | 36 |
36 if [ $? != 0 ] ; then usage; fi | 37 if [ $? != 0 ] ; then usage; fi |
37 eval set -- "$OPTS" | 38 eval set -- "$OPTS" |
38 while true ; do | 39 while true ; do |
39 case "$1" in | 40 case "$1" in |
40 "-?"|"--help") | 41 "-?"|"--help") |
41 usage;; | 42 usage;; |
42 "--") | 43 "--") |
43 shift | 44 shift |
44 break;; | 45 break;; |
46 "-o"|"--oracle") | |
47 BUILD_ORACLE="TRUE" | |
48 shift;; | |
45 *) | 49 *) |
46 echo "Unknown Option $1" | 50 echo "Unknown Option $1" |
47 usage;; | 51 usage;; |
48 esac | 52 esac |
49 done | 53 done |
75 pdflatex importer-manual.tex | 79 pdflatex importer-manual.tex |
76 pdflatex importer-manual.tex | 80 pdflatex importer-manual.tex |
77 pdflatex importer-manual.tex | 81 pdflatex importer-manual.tex |
78 | 82 |
79 # package importer | 83 # package importer |
80 mvn -f $SOURCE_DIR/backend/pom.xml clean package assembly:single | 84 if [ "$BUILD_ORACLE" = "TRUE" ]; then |
85 mvn -f $SOURCE_DIR/backend/pom-oracle.xml clean package assembly:single | |
86 else | |
87 mvn -f $SOURCE_DIR/backend/pom.xml clean package assembly:single | |
88 fi | |
81 | 89 |
82 echo "INFO: create tarball" | 90 echo "INFO: create tarball" |
83 rm -fr $PKG_DIR | 91 rm -fr $PKG_DIR |
84 mkdir $PKG_DIR | 92 mkdir $PKG_DIR |
85 cd $PKG_DIR | 93 cd $PKG_DIR |