summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-01-11 23:58:54 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:03 +0100
commit4a3d0ebf17d290053016e316e1c1cee91197fa56 (patch)
treefec192a34f8920d5f25f7503b27123ca7b376cc6
parentcf424ab6e6c8f4aad6a127b6c9880bfd0612af94 (diff)
downloadlive-build-4a3d0ebf17d290053016e316e1c1cee91197fa56.zip
live-build-4a3d0ebf17d290053016e316e1c1cee91197fa56.tar.gz
Renaming directory that holds automatic scripts (e.g. scripts/config or scripst/clean) to auto for consistency reasons.
-rwxr-xr-xfunctions/common.sh2
-rwxr-xr-xhelpers/lh_build4
-rwxr-xr-xhelpers/lh_clean10
-rwxr-xr-xhelpers/lh_config14
-rwxr-xr-xhelpers/lh_source_debian-live4
-rwxr-xr-xlive-helper.sh4
6 files changed, 19 insertions, 19 deletions
diff --git a/functions/common.sh b/functions/common.sh
index 84aa93c..2e8da09 100755
--- a/functions/common.sh
+++ b/functions/common.sh
@@ -12,4 +12,4 @@ PACKAGE="live-helper"
VERSION="2.0~a3-1"
CONFIG_VERSION="$(echo ${VERSION} | awk -F- '{ print $1 }')"
-PATH="${PWD}/scripts:${PATH}"
+PATH="${PWD}/auto/helpers:${PATH}"
diff --git a/helpers/lh_build b/helpers/lh_build
index 7d5abf0..835ad8e 100755
--- a/helpers/lh_build
+++ b/helpers/lh_build
@@ -13,9 +13,9 @@ set -e
. "${LH_BASE:-/usr/share/live-helper}"/live-helper.sh
# Read meta config
-if [ "${1}" != "noautoconfig" ] && [ -x scripts/build ]
+if [ "${1}" != "noautoconfig" ] && [ -x auto/build ]
then
- ./scripts/build ${@}
+ ./auto/build ${@}
fi
if [ "${1}" = "noautoconfig" ]
diff --git a/helpers/lh_clean b/helpers/lh_clean
index 29bddbd..8f74209 100755
--- a/helpers/lh_clean
+++ b/helpers/lh_clean
@@ -10,9 +10,9 @@
set -e
# Read meta config
-if [ "${1}" != "noautoconfig" ] && [ -x scripts/clean ]
+if [ "${1}" != "noautoconfig" ] && [ -x auto/clean ]
then
- ./scripts/clean ${@}
+ ./auto/clean ${@}
fi
if [ "${1}" = "noautoconfig" ]
@@ -59,9 +59,9 @@ do
LH=1 "${0}" noautoconfig --stage
LH=1 "${0}" noautoconfig --source
- if [ -d scripts ]
+ if [ -d auto ]
then
- rmdir --ignore-fail-on-non-empty scripts
+ rmdir --ignore-fail-on-non-empty auto
fi
;;
@@ -111,7 +111,7 @@ do
LH=1 "${0}" --all
LH=1 "${0}" --cache
- if [ -e scripts/config ]
+ if [ -e auto/config ]
then
rm -f .stage/config
fi
diff --git a/helpers/lh_config b/helpers/lh_config
index da417a3..3edd816 100755
--- a/helpers/lh_config
+++ b/helpers/lh_config
@@ -10,9 +10,9 @@
set -e
# Read meta config
-if [ "${1}" != "noautoconfig" ] && [ -x scripts/config ]
+if [ "${1}" != "noautoconfig" ] && [ -x auto/config ]
then
- ./scripts/config ${@}
+ ./auto/config ${@}
fi
if [ "${1}" = "noautoconfig" ]
@@ -210,14 +210,14 @@ Local_arguments ()
rmdir --ignore-fail-on-non-empty config
fi
- if [ -d scripts/functions ]
+ if [ -d auto/functions ]
then
- rmdir --ignore-fail-on-non-empty scripts/functions
+ rmdir --ignore-fail-on-non-empty auto/functions
fi
- if [ -d scripts ]
+ if [ -d auto ]
then
- rmdir --ignore-fail-on-non-empty scripts
+ rmdir --ignore-fail-on-non-empty auto
fi
exit 0
@@ -1246,7 +1246,7 @@ LH_SOURCE="${LH_SOURCE}"
LH_SOURCE_IMAGES="${LH_SOURCE_IMAGES}"
EOF
-mkdir -p scripts/functions
+mkdir -p auto/functions
if [ "${CONFIG}" = "clone" ] # FIXME
then
diff --git a/helpers/lh_source_debian-live b/helpers/lh_source_debian-live
index 391f75e..10ba580 100755
--- a/helpers/lh_source_debian-live
+++ b/helpers/lh_source_debian-live
@@ -52,9 +52,9 @@ fi
mkdir -p source/debian-live
cp -a config source/debian-live
-if Find_files scripts/*
+if Find_files auto/*
then
- cp -a scripts source/debian-live
+ cp -a auto source/debian-live
fi
# Create tarball
diff --git a/live-helper.sh b/live-helper.sh
index 626ba3f..59d475f 100755
--- a/live-helper.sh
+++ b/live-helper.sh
@@ -9,9 +9,9 @@ do
done
# Source local functions
-if ls scripts/functions/*.sh > /dev/null 2>&1
+if ls auto/functions/* > /dev/null 2>&1
then
- for FUNCTION in scripts/functions/*.sh
+ for FUNCTION in auto/functions/*
do
. "${FUNCTION}"
done