add a :noclean configuration to leave the build folder

This commit is contained in:
Lephenixnoir 2021-05-04 20:05:58 +02:00
parent 85f87acb15
commit 0217f5399d
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
3 changed files with 10 additions and 3 deletions

1
.gitignore vendored
View file

@ -2,6 +2,7 @@
*
!giteapc.make
!giteapc-config-any.make
!giteapc-config-noclean.make
!configure.sh
!build.sh
!install.sh

View file

@ -0,0 +1,4 @@
# Don't clean build folder after a build
NO_CLEAN=1
export NO_CLEAN

View file

@ -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