summaryrefslogtreecommitdiff
path: root/auto
diff options
context:
space:
mode:
Diffstat (limited to 'auto')
-rwxr-xr-xauto/build5
-rwxr-xr-xauto/clean4
-rwxr-xr-xauto/config5
3 files changed, 13 insertions, 1 deletions
diff --git a/auto/build b/auto/build
index 25e0a99..6e9135f 100755
--- a/auto/build
+++ b/auto/build
@@ -1,3 +1,6 @@
-#!/bin/sh
+#!/bin/bash
+
+# Update kanotix-version timestamp
+perl -pi -e "s|[0-9]+-[0-9]+:[0-9]+|$(date +%Y%m%d-%H:%M)|" > config/chroot_local-includes/etc/kanotix-version
lh build noauto ${@} 2>&1 | tee binary.log
diff --git a/auto/clean b/auto/clean
index 90634ac..05c53de 100755
--- a/auto/clean
+++ b/auto/clean
@@ -5,6 +5,9 @@ rm -f build.log
# Remove generated files
rm -f config/binary config/bootstrap config/chroot config/common config/source
+# remove kanotix-scripts
+grep -oe '^[^ #]*' scripts.urls | grep -oe '[^/]*$' | xargs -i rm -f config/chroot_local-includes/usr/local/bin/{}
+
# Remove empty directories in config tree
if ls config/*/ > /dev/null 2>&1
then
@@ -15,3 +18,4 @@ if [ -d config ]
then
rmdir --ignore-fail-on-non-empty config
fi
+
diff --git a/auto/config b/auto/config
index 018610c..97eb577 100755
--- a/auto/config
+++ b/auto/config
@@ -59,3 +59,8 @@ lh config noauto \
--packages-lists "standard-x11" \
${@}
+# Fetch kanotix-scripts if necessary
+mkdir -p config/chroot_local-includes/usr/local/bin
+grep -oe '^[^ #]*' scripts.urls | wget -i- -c -N -q -P config/chroot_local-includes/usr/local/bin
+chmod 755 config/chroot_local-includes/usr/local/bin/*.sh
+