blob: 500c76d50e2b58b2eaaae13811e6acbd6bd96cc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/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
do
. "${FUNCTION}"
done
# Source local functions
if ls local/functions/* > /dev/null 2>&1
then
for FUNCTION in local/functions/*
do
. "${FUNCTION}"
done
fi
|