summaryrefslogtreecommitdiff
path: root/auto/build
diff options
context:
space:
mode:
Diffstat (limited to 'auto/build')
-rwxr-xr-xauto/build10
1 files changed, 10 insertions, 0 deletions
diff --git a/auto/build b/auto/build
index b54183c..62e8d8b 100755
--- a/auto/build
+++ b/auto/build
@@ -30,11 +30,21 @@ prebuild()
# make current build configuration available for hooks inside chroot
mkdir -p config/chroot_local-includes/root
cat config/* 2>/dev/null | grep ^LH_ > config/chroot_local-includes/root/build.conf
+
+ # Kanotix flavours
+ if [ "$LH_KANOTIX_FLAVOURS" -a "$LH_KANOTIX_FLAVOURS" != "none" ]; then
+ echo "# DO NOT EDIT THIS FILE! It is auto-generated and will be deleted/ overwritten!" > config/chroot_local-packageslists/kanotix-flavours.list
+ for FLAVOUR in $LH_KANOTIX_FLAVOURS
+ do
+ echo "#include <$FLAVOUR>" >> config/chroot_local-packageslists/kanotix-flavours.list
+ done
+ fi
}
postbuild()
{
rm -f config/chroot_local-includes/root/build.conf
+ rm -f config/chroot_local-packageslists/kanotix-flavours.list
}
if [ "$LH_KANOTIX_TMPFS" = "true" ]; then