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

http://dive4elements.wald.intevation.org