Adding some comments about the different locations of live-build in the central lb wrapper.

This commit is contained in:
Daniel Baumann 2012-08-27 14:54:20 +02:00
parent 80bfaf9f0a
commit 365e4c81c5
1 changed files with 3 additions and 0 deletions

3
bin/lb
View File

@ -55,12 +55,15 @@ case "${1}" in
if [ -x "${LIVE_BUILD}/scripts/build/${COMMAND}" ]
then
# User has live-build copied locally in the system
SCRIPT="${LIVE_BUILD}/scripts/build/${COMMAND}"
elif [ -x /usr/lib/live/build/${COMMAND} ]
then
# User has live-build installed in the system
SCRIPT=/usr/lib/live/build/"${COMMAND}"
elif [ -x "$(which ${COMMAND} 2>/dev/null)" ]
then
# User has live-build commands in path
SCRIPT="${COMMAND}"
else
Echo_error "no such script: ${COMMAND}"