summaryrefslogtreecommitdiff
path: root/scripts/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build.sh')
-rwxr-xr-xscripts/build.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
new file mode 100755
index 0000000..59d475f
--- /dev/null
+++ b/scripts/build.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+LH_BASE="${LH_BASE:-/usr/share/live-helper}"
+
+# Source global functions
+for FUNCTION in "${LH_BASE}"/functions/*.sh
+do
+ . "${FUNCTION}"
+done
+
+# Source local functions
+if ls auto/functions/* > /dev/null 2>&1
+then
+ for FUNCTION in auto/functions/*
+ do
+ . "${FUNCTION}"
+ done
+fi