comparison 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
comparison
equal deleted inserted replaced
9778:b57b236c4f4e 9779:3847836c60b5
42 usage;; 42 usage;;
43 "--") 43 "--")
44 shift 44 shift
45 break;; 45 break;;
46 "-o"|"--oracle") 46 "-o"|"--oracle")
47 BUILD_ORACLE="TRUE" 47 ORACLE="true"
48 shift;; 48 shift;;
49 *) 49 *)
50 echo "Unknown Option $1" 50 echo "Unknown Option $1"
51 usage;; 51 usage;;
52 esac 52 esac
79 pdflatex importer-manual.tex 79 pdflatex importer-manual.tex
80 pdflatex importer-manual.tex 80 pdflatex importer-manual.tex
81 pdflatex importer-manual.tex 81 pdflatex importer-manual.tex
82 82
83 # package importer 83 # package importer
84 if [ "$BUILD_ORACLE" = "TRUE" ]; then 84 # If ORACLE=true, the oracle profile in the POM is activated
85 mvn -f $SOURCE_DIR/backend/pom-oracle.xml clean package assembly:single 85 mvn -f $SOURCE_DIR/backend/pom.xml clean package assembly:single
86 else
87 mvn -f $SOURCE_DIR/backend/pom.xml clean package assembly:single
88 fi
89 86
90 echo "INFO: create tarball" 87 echo "INFO: create tarball"
91 rm -fr $PKG_DIR 88 rm -fr $PKG_DIR
92 mkdir $PKG_DIR 89 mkdir $PKG_DIR
93 cd $PKG_DIR 90 cd $PKG_DIR

http://dive4elements.wald.intevation.org