Commit b6234e6d authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

build fix : fop + saxon dl

parent b04634df
Loading
Loading
Loading
Loading
+12 −5
Original line number Diff line number Diff line
@@ -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