From 2b050cccdac0c6970d349d4d2d6e8826fa0b6def Mon Sep 17 00:00:00 2001 From: philippe lhardy Date: Fri, 28 Jul 2023 10:27:18 +0200 Subject: [PATCH] better dependencies fetching - provide git url for sharedrawweb --- BUILD.md | 18 ++++++++++++++++++ README | 2 +- fetch_dependencies.sh | 19 ++++++++++++++++++- 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 BUILD.md diff --git a/BUILD.md b/BUILD.md new file mode 100644 index 0000000..56ffe6a --- /dev/null +++ b/BUILD.md @@ -0,0 +1,18 @@ + +===== How to build this project ? ===== + +This project was done in java so it requires a java compiler to be build under an executable form. + +It is expected you already obtained content of source since you are readeing this BUILD.md + +within same directory as this BUILD.md : + +``` +./init.sh +# will create build scripts from artlog_toolbox +# ./doit.sh +# depends on sharedrawweb for stl export +./fetch_dependencies.sh +ant dist +``` + diff --git a/README b/README index b7e1822..7bb598b 100644 --- a/README +++ b/README @@ -9,7 +9,7 @@ After years i finaly printed one maze, find it at https://www.thingiverse.com/th 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 +There is a console gui menu based with ./doit.sh requirement : you need a java jdk environment installed ( java + javac ) and ant diff --git a/fetch_dependencies.sh b/fetch_dependencies.sh index 4f8d6fe..d45570e 100755 --- a/fetch_dependencies.sh +++ b/fetch_dependencies.sh @@ -1,5 +1,20 @@ #!/bin/bash +log_any() +{ + echo "$@" >&2 +} + +log_error() +{ + log_any "[ERROR] $@" +} + +log_info() +{ + log_any "[INFO] $@" +} + fetch_jackson_databind() { @@ -28,7 +43,9 @@ fetch_zstd-jni() if [[ ! -d ../sharedrawweb ]] then - echo "[ERROR] expected a sharedrawweb project parent ( for exports )" >&2 + log_error "expected a sharedrawweb project parent ( for exports ). Please clone related project." + sharedrawweb_git_url="ssh://philippe@www4.artisanlogiciel.net:2023/home/philippe/artisanlogiciel/code/sharedrawweb" + log_info "cd ..; git clone sharedrawweb_git_url" fi if [[ ! -d libs ]]