summaryrefslogtreecommitdiff
path: root/scripts/build.sh
blob: 21ff520d8591f97fa1a44a36099c439bd9c71990 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

if [ -e local/live-build ]
then
	LIVE_BUILD="${LIVE_BUILD:-${PWD}/local/live-build}"
	export LIVE_BUILD
fi

# Source global functions
for FUNCTION in "${LIVE_BUILD}"/functions/*.sh /usr/share/live/build/functions/*.sh
do
	if [ -e "${FUNCTION}" ]
	then
		. "${FUNCTION}"
	fi
done