diff options
-rwxr-xr-x | functions/common.sh | 2 | ||||
-rwxr-xr-x | scripts/build.sh | 4 | ||||
-rwxr-xr-x | scripts/build/lb_config | 10 |
3 files changed, 9 insertions, 7 deletions
diff --git a/functions/common.sh b/functions/common.sh index 52f826dcf..538d180b0 100755 --- a/functions/common.sh +++ b/functions/common.sh @@ -12,4 +12,4 @@ PROGRAM="live-build" VERSION="$(cat ${LB_BASE}/VERSION)" CONFIG_VERSION="$(echo ${VERSION} | awk -F- '{ print $1 }')" -PATH="${PWD}/auto/scripts:${PATH}" +PATH="${PWD}/local/scripts:${PATH}" diff --git a/scripts/build.sh b/scripts/build.sh index 74898d473..500c76d50 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -17,9 +17,9 @@ do done # Source local functions -if ls auto/functions/* > /dev/null 2>&1 +if ls local/functions/* > /dev/null 2>&1 then - for FUNCTION in auto/functions/* + for FUNCTION in local/functions/* do . "${FUNCTION}" done diff --git a/scripts/build/lb_config b/scripts/build/lb_config index 645020356..8b6a3ad37 100755 --- a/scripts/build/lb_config +++ b/scripts/build/lb_config @@ -1449,8 +1449,9 @@ LB_SOURCE="${LB_SOURCE}" LB_SOURCE_IMAGES="${LB_SOURCE_IMAGES}" EOF -mkdir -p auto/functions -mkdir -p auto/scripts +mkdir -p auto +mkdir -p local/functions +mkdir -p local/scripts if [ "${CONFIG}" = "clone" ] # FIXME then @@ -1475,9 +1476,10 @@ then # Remove empty directories in config tree rmdir --ignore-fail-on-non-empty config/*/ > /dev/null 2>&1 || true rmdir --ignore-fail-on-non-empty config > /dev/null 2>&1 || true - rmdir --ignore-fail-on-non-empty auto/functions > /dev/null 2>&1 || true - rmdir --ignore-fail-on-non-empty auto/scripts > /dev/null 2>&1 || true rmdir --ignore-fail-on-non-empty auto > /dev/null 2>&1 || true + rmdir --ignore-fail-on-non-empty local/functions > /dev/null 2>&1 || true + rmdir --ignore-fail-on-non-empty local/scripts > /dev/null 2>&1 || true + rmdir --ignore-fail-on-non-empty local > /dev/null 2>&1 || true fi # Creating stage file |