Calling local live-build embedded in config directly rather than to adjust path.

This commit is contained in:
Daniel Baumann 2012-08-27 14:55:15 +02:00
parent 365e4c81c5
commit d0561821e4
3 changed files with 6 additions and 4 deletions

4
bin/lb
View File

@ -57,6 +57,10 @@ case "${1}" in
then
# User has live-build copied locally in the system
SCRIPT="${LIVE_BUILD}/scripts/build/${COMMAND}"
elif [ -x "local/live-build/scripts/build/${COMMAND}" ]
then
# User has live-build embedded in the config
SCRIPT="local/live-build/scripts/build/${COMMAND}"
elif [ -x /usr/lib/live/build/${COMMAND} ]
then
# User has live-build installed in the system

View File

@ -15,8 +15,7 @@ Set_defaults ()
if [ -e local/live-build ]
then
LIVE_BUILD="${LIVE_BUILD:-${PWD}/local/live-build}"
PATH="${PWD}/local/live-build/scripts/build:${PATH}"
export LIVE_BUILD PATH
export LIVE_BUILD
fi
# Setting system type

View File

@ -3,8 +3,7 @@
if [ -e local/live-build ]
then
LIVE_BUILD="${LIVE_BUILD:-${PWD}/local/live-build}"
PATH="${PWD}/local/live-build/scripts/build:${PATH}"
export LIVE_BUILD PATH
export LIVE_BUILD
fi
# Source global functions