diff --git a/README b/README index 29d57a0..a16e4c2 100644 --- a/README +++ b/README @@ -6,7 +6,6 @@ this can generate a stl file, overall goal was to print it with a 3D printer, i This is the very first usable part. It was developped under debian 7/8 but since it is java based it might be very easily recompiled or even just copied on other platform. - there is a console gui menu base with ./doit.sh requirement : you need a java jdk environment installed ( java + javac ) and ant @@ -21,6 +20,8 @@ mkdir github cd github git clone https://github.com/artlog/labystl.git cd labystl +./init.sh +# will create build scripts from artlog_toolbox ./doit.sh ant run diff --git a/artlog_toolbox/deploy.sh b/artlog_toolbox/deploy.sh new file mode 100755 index 0000000..a4dfda2 --- /dev/null +++ b/artlog_toolbox/deploy.sh @@ -0,0 +1,45 @@ +#!/bin/bash + +A_TOOLBOX=artlog_toolbox + +if [[ ! -d $A_TOOLBOX ]] +then + echo "[ERROR] this tool should be run from parent dir of $A_TOOLBOX this way : ${A_TOOLBOX}/deploy.sh" >&2 + exit 1 +fi + +destroy=0 + +while [[ $# -gt 0 ]] +do + case $1 in + destroy) + destroy=1 + ;; + *) + echo "[ERROR] unrecognized '$1' argument for $0" >&2 + exit 1 + ;; + esac + shift 1 +done + +if [[ $destroy != 1 ]] +then + echo "Deploying scripts..." + + pushd ${A_TOOLBOX} + cp scripts/* .. + popd +else + echo "destroy deployed toolbox" + for script in $(ls ${A_TOOLBOX}/scripts) + do + if [[ -f $script ]] + then + shortscript=$(basename "$script") + echo "deleting '$shortscript'" + rm "$shortscript" + fi + done +fi diff --git a/Makefile b/artlog_toolbox/scripts/Makefile similarity index 100% rename from Makefile rename to artlog_toolbox/scripts/Makefile diff --git a/absant.sh b/artlog_toolbox/scripts/absant.sh similarity index 100% rename from absant.sh rename to artlog_toolbox/scripts/absant.sh diff --git a/antify.sh b/artlog_toolbox/scripts/antify.sh similarity index 100% rename from antify.sh rename to artlog_toolbox/scripts/antify.sh diff --git a/debianize.sh b/artlog_toolbox/scripts/debianize.sh similarity index 100% rename from debianize.sh rename to artlog_toolbox/scripts/debianize.sh diff --git a/doit.sh b/artlog_toolbox/scripts/doit.sh similarity index 100% rename from doit.sh rename to artlog_toolbox/scripts/doit.sh diff --git a/init.sh b/init.sh new file mode 100755 index 0000000..007255a --- /dev/null +++ b/init.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +artlog_toolbox/deploy.sh