From ef53525970f0d3d9410e8a356fc9170cbead016a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 1 Sep 2011 09:27:16 +0200 Subject: Automatically using an embedded live-build copy from within the config tree at local/live-build, if existing. This allows to ship (an almost) self contained config tree. --- functions/defaults.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'functions/defaults.sh') diff --git a/functions/defaults.sh b/functions/defaults.sh index ae8b7af26..643123c89 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -12,7 +12,15 @@ Set_defaults () { ## config/common - LB_BASE="${LB_BASE:-/usr/share/live/build}" + if [ -e local/live-build ] + then + LB_BASE="${LB_BASE:-${PWD}/local/live-build}" + PATH="${PWD}/local/live-build/scripts/build:${PATH}" + export LB_BASE PATH + else + LB_BASE="${LB_BASE:-/usr/share/live/build}" + export LB_BASE + fi # Setting mode (currently: debian, emdebian, progress, ubuntu and kubuntu) LB_MODE="${LB_MODE:-debian}" -- cgit v1.2.3