depends on sharedrawweb library

create a fetch_dependencies.sh lazy script
move dependencies into libs/ directory
This commit is contained in:
philippe lhardy
2018-06-15 22:47:23 +02:00
parent 3a4255b6da
commit 032cb6a0f5
4 changed files with 21 additions and 2 deletions

2
README
View File

@@ -26,6 +26,8 @@ cd labystl
./init.sh
# will create build scripts from artlog_toolbox
# ./doit.sh
# depends on sharedrawweb for stl export
./fetch_dependencies.sh
ant dist
source ./specificdoit.sh; create_zip_package
unzip laby.zip; cd artloglaby ; ./laby.sh

View File

@@ -35,7 +35,7 @@
<jar jarfile="${dist}/lib/artloglaby-${distversion}.jar" basedir="${build}">
<manifest>
<attribute name="Main-Class" value="org.artisanlogiciel.games.Display"/>
<attribute name="Class-Path" value="${artgraphicslib}.jar"/>
<attribute name="Class-Path" value="libs/${artgraphicslib}.jar"/>
</manifest>
<fileset dir="lang" includes="**" />
</jar>

16
fetch_dependencies.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
if [[ ! -d ../sharedrawweb ]]
then
echo "[ERROR] expected a sharedrawweb project parent ( for exports )" >&2
fi
if [[ ! -d libs ]]
then
mkdir libs
fi
if [[ ! -e libs/artgaphics-0.1.0.jar ]]
then
ln -s ../../sharedrawweb/dist/lib/artgaphics-0.1.0.jar libs/
fi

View File

@@ -33,9 +33,10 @@ create_zip_package()
mkdir $dest
# will be used at run time to save mazes
mkdir $dest/lab
mkdir $dest/libs
cp scripts/laby.sh $dest
cp LISEZMOI $dest
cp libs/* $dest
cp libs/* $dest/libs/
cp dist/lib/* $dest
zip -r $zip_package $dest