summaryrefslogtreecommitdiff
path: root/auto/build
diff options
context:
space:
mode:
Diffstat (limited to 'auto/build')
-rwxr-xr-xauto/build7
1 files changed, 7 insertions, 0 deletions
diff --git a/auto/build b/auto/build
index f46d0fe..beb7814 100755
--- a/auto/build
+++ b/auto/build
@@ -32,6 +32,11 @@ prebuild()
cat config/* 2>/dev/null | grep ^LH_ > config/chroot_local-includes/root/build.conf
}
+postbuild()
+{
+ rm -f config/chroot_local-includes/root/build.conf
+}
+
if [ "$LH_KANOTIX_TMPFS" = "true" ]; then
mkdir -p tmpfs
# build using tmpfs
@@ -44,10 +49,12 @@ if [ "$LH_KANOTIX_TMPFS" = "true" ]; then
# build
prebuild
lh build noauto ${@} 2>&1 | tee binary.log
+ postbuild
cd ..
else
prebuild
lh build noauto ${@} 2>&1 | tee binary.log
+ postbuild
fi
exit 1