summaryrefslogtreecommitdiff
path: root/auto
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2010-09-06 16:24:14 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2010-09-06 16:24:14 +0200
commit9f8aa6da27267d88a115606cb009464ee05b097d (patch)
tree2f8fa19f8306c7682f99587a6e85152f586f2019 /auto
parent9cf8c8574e0dc040796c54f5d8f0f5cc04e90d0e (diff)
downloadkanotix-9f8aa6da27267d88a115606cb009464ee05b097d.zip
kanotix-9f8aa6da27267d88a115606cb009464ee05b097d.tar.gz
added build.conf cleanup
Diffstat (limited to 'auto')
-rwxr-xr-xauto/build7
-rwxr-xr-xauto/clean2
2 files changed, 8 insertions, 1 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
diff --git a/auto/clean b/auto/clean
index c4f0846..30e9083 100755
--- a/auto/clean
+++ b/auto/clean
@@ -3,7 +3,7 @@
rm -f build.log
# Remove generated files
-rm -f config/binary config/bootstrap config/chroot config/common config/source config/kanotix
+rm -f config/binary config/bootstrap config/chroot config/common config/source config/kanotix config/chroot_local-includes/root/build.conf
if [ -f config/all ]; then
sed -i '/^. config\/kanotix/d' config/all
[ ! -s config/all ] && rm -f config/all