From 0217f5399d498a8de1ad51f68a89dda5759275f2 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Tue, 4 May 2021 20:05:58 +0200 Subject: [PATCH] add a :noclean configuration to leave the build folder --- .gitignore | 1 + giteapc-config-noclean.make | 4 ++++ install.sh | 8 +++++--- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 giteapc-config-noclean.make diff --git a/.gitignore b/.gitignore index 792f670..a323bde 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ * !giteapc.make !giteapc-config-any.make +!giteapc-config-noclean.make !configure.sh !build.sh !install.sh diff --git a/giteapc-config-noclean.make b/giteapc-config-noclean.make new file mode 100644 index 0000000..6fc1db7 --- /dev/null +++ b/giteapc-config-noclean.make @@ -0,0 +1,4 @@ +# Don't clean build folder after a build +NO_CLEAN=1 + +export NO_CLEAN diff --git a/install.sh b/install.sh index 970a11a..ed3c797 100755 --- a/install.sh +++ b/install.sh @@ -25,6 +25,8 @@ for x in bin/*; do done # Cleanup build files -echo "$TAG Cleaning up build files..." -rm -rf gcc-*/ gcc-*.tar.* -rm -rf build/ +if [[ -z $NO_CLEAN ]]; then + echo "$TAG Cleaning up build files..." + rm -rf gcc-*/ gcc-*.tar.* + rm -rf build/ +fi