diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-01-07 00:12:58 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2016-01-07 00:13:08 +0100 |
commit | c3ec70581f8529249fd66d402b7d6c8602d6d3a2 (patch) | |
tree | 8c0af0ff16b0a32f0bed74296d68ccabf7c85913 | |
parent | a49db9802cba6886423034bf4304a580371d3d61 (diff) |
add --no-clean for experts
-rwxr-xr-x | embedded-test.sh | 7 |
1 files changed, 6 insertions, 1 deletions
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 |