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:
parent
3cf8c4bb22
commit
ef53525970
|
@ -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}"
|
||||
|
|
|
@ -1,6 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
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
|
||||
|
||||
# Source global functions
|
||||
for FUNCTION in "${LB_BASE}"/functions/*.sh
|
||||
|
|
Loading…
Reference in New Issue