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

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

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

		break
	fi
done