summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfunctions/defaults.sh10
-rwxr-xr-xscripts/build.sh10
2 files changed, 18 insertions, 2 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index ae8b7af26..643123c89 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -12,7 +12,15 @@ Set_defaults ()
{
## config/common
- LB_BASE="${LB_BASE:-/usr/share/live/build}"
+ 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
# Setting mode (currently: debian, emdebian, progress, ubuntu and kubuntu)
LB_MODE="${LB_MODE:-debian}"
diff --git a/scripts/build.sh b/scripts/build.sh
index 443e9eed9..74898d473 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -1,6 +1,14 @@
#!/bin/sh
-LB_BASE="${LB_BASE:-/usr/share/live/build}"
+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