From c3ec70581f8529249fd66d402b7d6c8602d6d3a2 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 7 Jan 2016 00:12:58 +0100 Subject: add --no-clean for experts --- embedded-test.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/embedded-test.sh b/embedded-test.sh index 5610a56..8d5f20e 100755 --- a/embedded-test.sh +++ b/embedded-test.sh @@ -78,6 +78,7 @@ Explanation: --continue continue on a broken build --cleandir clean OpenADK build directories before build --clean clean OpenADK build directory for single arch + --no-clean do not clean OpenADK build directory for single arch --debug enable debug output from OpenADK --shell start a shell instead of test autorun --help this help text @@ -87,6 +88,7 @@ EOF cont=0 clean=0 +noclean=0 cleandir=0 shell=0 update=0 @@ -98,6 +100,7 @@ test="toolchain" while [[ $1 != -- && $1 = -* ]]; do case $1 { (--cleandir) cleandir=1; shift ;; (--clean) clean=1; shift ;; + (--no-clean) noclean=1; shift ;; (--debug) debug=1; shift ;; (--update) update=1; shift ;; (--continue) cont=1; shift ;; @@ -1033,7 +1036,9 @@ for lib in ${libc}; do (cd $usrc && tar cJf $topdir/openadk/dl/${libver}.tar.xz ${libver} ) touch $topdir/openadk/dl/${libver}.tar.xz.nohash # we need to clean system, when external source is used - clean=1 + if [ $noclean -eq 0 ]; then + clean=1 + fi fi # start with a clean dir -- cgit v1.2.3