Windows/build-dependencies: New flag --no-clean
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 5 Sep 2021 10:59:49 +0000 (12:59 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 5 Sep 2021 10:59:49 +0000 (12:59 +0200)
Windows/build-dependencies

index 236b1d8bdcfb696312236ebd7c2ea393f6cfb528..f2e9692167b3acdf55470bd2ebf0e74804346695 100755 (executable)
@@ -41,6 +41,8 @@ while test $# -gt 0; do
             SANDBOX=${1##--sandbox=};;
         --tarballs=*)
             SRC_TARBALL_DIR=${1##--tarballs=};;
+        --no-clean)
+            noclean=yes;;
         *)
             printf "Usage: $0 --arch=<arch> --sandbox=<dir> [--tarballs=<dir>]\n";
             exit 1;
@@ -62,7 +64,7 @@ fi
 
 SRC_TARBALL_DIR=`eval echo $SRC_TARBALL_DIR`
 
-rm -rIf $SANDBOX
+test "x$noclean" = "xyes" || rm -rIf $SANDBOX
 
 default_build_procs=$(expr $(cat /proc/cpuinfo | grep -c '^processor') + 1)