2009-01-27 13:12:37 -01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2011-09-01 07:27:16 +00:00
|
|
|
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
|
2009-01-27 13:12:37 -01:00
|
|
|
|
2009-10-21 11:12:48 +00:00
|
|
|
# Source global functions
|
2010-09-07 13:11:20 +00:00
|
|
|
for FUNCTION in "${LB_BASE}"/functions/*.sh
|
2009-01-27 13:12:37 -01:00
|
|
|
do
|
|
|
|
. "${FUNCTION}"
|
|
|
|
done
|
2009-10-21 11:12:48 +00:00
|
|
|
|
|
|
|
# Source local functions
|
2012-06-04 08:56:37 +00:00
|
|
|
if ls local/functions/* > /dev/null 2>&1
|
2009-10-21 11:12:48 +00:00
|
|
|
then
|
2012-06-04 08:56:37 +00:00
|
|
|
for FUNCTION in local/functions/*
|
2009-10-21 11:12:48 +00:00
|
|
|
do
|
|
|
|
. "${FUNCTION}"
|
|
|
|
done
|
|
|
|
fi
|