diff --git a/specificdoit.sh b/specificdoit.sh index 6966d04..6f2120b 100644 --- a/specificdoit.sh +++ b/specificdoit.sh @@ -35,6 +35,9 @@ specific_run() create_zip_package() { dest=artloglaby/ + + # some static resources outside jar. + static_resources=lab/titou20.xpm if [[ -e $dest ]] then echo "[ERROR] $dest already exists ! move it away ">&2 @@ -49,7 +52,15 @@ create_zip_package() mkdir $dest/lab mkdir $dest/libs cp scripts/laby.sh $dest - + for sr in $static_resources + do + if [[ -f $sr ]] + then + cp $sr $dest/$sr + else + echo "[ERROR] expecting static resource $sr" >&2 + fi + done MAINJAR="" pushd dist/lib findmainjar