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.
This commit is contained in:
Daniel Baumann 2011-09-01 09:27:16 +02:00
parent 3cf8c4bb22
commit ef53525970
2 changed files with 18 additions and 2 deletions

View File

@ -12,7 +12,15 @@ Set_defaults ()
{
## config/common
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}"

View File

@ -1,6 +1,14 @@
#!/bin/sh
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
# Source global functions
for FUNCTION in "${LB_BASE}"/functions/*.sh