diff --git a/README b/README index b8bc353..b7e1822 100644 --- a/README +++ b/README @@ -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 diff --git a/build.xml b/build.xml index f1b2f16..30d02fe 100644 --- a/build.xml +++ b/build.xml @@ -35,7 +35,7 @@ - + diff --git a/fetch_dependencies.sh b/fetch_dependencies.sh new file mode 100755 index 0000000..0eeff37 --- /dev/null +++ b/fetch_dependencies.sh @@ -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 diff --git a/specificdoit.sh b/specificdoit.sh index 3fca2ef..a6108d2 100644 --- a/specificdoit.sh +++ b/specificdoit.sh @@ -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