From 0a2b9b9dc4fff21da09ef5a976f062b170a8ba56 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 1 May 2022 03:38:07 -0500 Subject: [PATCH] When building musl-git-master, don't let "clean" delete it. (Otherwise it'll git clone it again for each architecture, requiring net access to build and undoing any local changes.) --- scripts/mcm-buildall.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/mcm-buildall.sh b/scripts/mcm-buildall.sh index cac41372..7218036b 100755 --- a/scripts/mcm-buildall.sh +++ b/scripts/mcm-buildall.sh @@ -91,7 +91,11 @@ make_toolchain() # Prevent cross compiler reusing dynamically linked host build files for # $BOOTSTRAP arch - [ -z "$TYPE" ] && make clean + [ -z "$TYPE" ] && { + [ -e musl-git-master ] && mv musl-git-master keep-this-dir + make clean + [ -e keep-this-dir ] && mv keep-this-dir musl-git-master + } if [ "$TYPE" == native ] then -- 2.39.2