summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-02-17 16:11:50 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:04 +0100
commit5e3b3693ea5307f4019cd12e64a5835658e00e82 (patch)
treec3a513644b338811beecaaa473c499dc58663c2f
parent67af4a1ce98acf4de7b71b7c0e11091b9826abeb (diff)
downloadlive-build-5e3b3693ea5307f4019cd12e64a5835658e00e82.zip
live-build-5e3b3693ea5307f4019cd12e64a5835658e00e82.tar.gz
Automatically populating config tree when having auto/config present and lh build is called without having lh config run before.
-rwxr-xr-xhelpers/build7
1 files changed, 7 insertions, 0 deletions
diff --git a/helpers/build b/helpers/build
index 835ad8e..52400fa 100755
--- a/helpers/build
+++ b/helpers/build
@@ -12,6 +12,13 @@ set -e
# Including common functions
. "${LH_BASE:-/usr/share/live-helper}"/live-helper.sh
+# Automatically populating config tree
+if [ -x auto/config ] && [ ! -e .stage/config ]
+then
+ Echo_message "Automatically populating config tree."
+ lh config
+fi
+
# Read meta config
if [ "${1}" != "noautoconfig" ] && [ -x auto/build ]
then