diff --git a/tools/build.sh b/tools/build.sh index 83b2fdf6696661bede0f6dd277f08b99d7927cb2..66013a0ae3d2cc354adb7dfee679e773376b560a 100755 --- a/tools/build.sh +++ b/tools/build.sh @@ -2,6 +2,9 @@ #build max release ' zip BASEX_URL=https://files.basex.org/releases/10.7/BaseX107.zip +SAXON_HE_URL="https://repo1.maven.org/maven2/net/sf/saxon/Saxon-HE/10.8/Saxon-HE-10.8.jar" +FOP_URL="https://files.basex.org/modules/org/basex/modules/fop/FOP.jar" + DIRECTORY=$(cd `dirname $0` && pwd) echo "Working directory = "$DIRECTORY @@ -79,17 +82,21 @@ unzip $basex_zip rm -rf $basex_zip mv basex $RELEASE_DIR +#dl and copy saxon & fop jars in basex lib dir +echo 'dl and copy saxon & fop jars in basex lib dir' +cd $DIRECTORY +curl --silent -k -O $SAXON_HE_URL +curl --silent -k -O $FOP_URL +mv Saxon-HE-10.8.jar $RELEASE_DIR/basex/lib/custom/ +mv FOP.jar $RELEASE_DIR/basex/lib/custom/ + #create symlink to max web app in basex webapp echo 'create symlink to max web app in basex webapp' cd $RELEASE_DIR/basex/webapp ln -s ../../max max -#copy saxon & fop jars in basex lib dir -echo 'copy saxon & fop jars in basex lib dir' -cd $DIRECTORY -cp ../basex/lib/custom/Saxon-HE-10.8.jar $RELEASE_DIR/basex/lib/custom/ -cp ../basex/lib/custom/FOP.jar $RELEASE_DIR/basex/lib/custom/ + # generate Makefile from dev one echo 'TOOLS_DIR=max/tools/' > Makefile