diff contrib/make_flys_release/bin/make-importer-package.sh @ 9779:3847836c60b5 3.2.x

Improve backend build for different database backends Use profiles instead of multiple almost identical POMs. Introduce build-time argument for Docker build.
author Tom Gottfried <tom@intevation.de>
date Tue, 07 Feb 2023 16:11:43 +0100
parents b57b236c4f4e
children
line wrap: on
line diff
--- a/contrib/make_flys_release/bin/make-importer-package.sh	Mon Feb 06 16:57:03 2023 +0100
+++ b/contrib/make_flys_release/bin/make-importer-package.sh	Tue Feb 07 16:11:43 2023 +0100
@@ -44,7 +44,7 @@
       shift
       break;;
     "-o"|"--oracle")
-      BUILD_ORACLE="TRUE"
+      ORACLE="true"
       shift;;
     *)
       echo "Unknown Option $1"
@@ -81,11 +81,8 @@
 pdflatex importer-manual.tex
 
 # package importer
-if [ "$BUILD_ORACLE" = "TRUE" ]; then
-    mvn -f $SOURCE_DIR/backend/pom-oracle.xml clean package assembly:single
-else
-    mvn -f $SOURCE_DIR/backend/pom.xml clean package assembly:single
-fi
+# If ORACLE=true, the oracle profile in the POM is activated
+mvn -f $SOURCE_DIR/backend/pom.xml clean package assembly:single
 
 echo "INFO: create tarball"
 rm -fr $PKG_DIR

http://dive4elements.wald.intevation.org