Renaming directory that holds automatic scripts (e.g. scripts/config or scripst/clean) to auto for consistency reasons.
This commit is contained in:
parent
cf424ab6e6
commit
4a3d0ebf17
|
@ -12,4 +12,4 @@ PACKAGE="live-helper"
|
||||||
VERSION="2.0~a3-1"
|
VERSION="2.0~a3-1"
|
||||||
CONFIG_VERSION="$(echo ${VERSION} | awk -F- '{ print $1 }')"
|
CONFIG_VERSION="$(echo ${VERSION} | awk -F- '{ print $1 }')"
|
||||||
|
|
||||||
PATH="${PWD}/scripts:${PATH}"
|
PATH="${PWD}/auto/helpers:${PATH}"
|
||||||
|
|
|
@ -13,9 +13,9 @@ set -e
|
||||||
. "${LH_BASE:-/usr/share/live-helper}"/live-helper.sh
|
. "${LH_BASE:-/usr/share/live-helper}"/live-helper.sh
|
||||||
|
|
||||||
# Read meta config
|
# Read meta config
|
||||||
if [ "${1}" != "noautoconfig" ] && [ -x scripts/build ]
|
if [ "${1}" != "noautoconfig" ] && [ -x auto/build ]
|
||||||
then
|
then
|
||||||
./scripts/build ${@}
|
./auto/build ${@}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${1}" = "noautoconfig" ]
|
if [ "${1}" = "noautoconfig" ]
|
||||||
|
|
|
@ -10,9 +10,9 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Read meta config
|
# Read meta config
|
||||||
if [ "${1}" != "noautoconfig" ] && [ -x scripts/clean ]
|
if [ "${1}" != "noautoconfig" ] && [ -x auto/clean ]
|
||||||
then
|
then
|
||||||
./scripts/clean ${@}
|
./auto/clean ${@}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${1}" = "noautoconfig" ]
|
if [ "${1}" = "noautoconfig" ]
|
||||||
|
@ -59,9 +59,9 @@ do
|
||||||
LH=1 "${0}" noautoconfig --stage
|
LH=1 "${0}" noautoconfig --stage
|
||||||
LH=1 "${0}" noautoconfig --source
|
LH=1 "${0}" noautoconfig --source
|
||||||
|
|
||||||
if [ -d scripts ]
|
if [ -d auto ]
|
||||||
then
|
then
|
||||||
rmdir --ignore-fail-on-non-empty scripts
|
rmdir --ignore-fail-on-non-empty auto
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ do
|
||||||
LH=1 "${0}" --all
|
LH=1 "${0}" --all
|
||||||
LH=1 "${0}" --cache
|
LH=1 "${0}" --cache
|
||||||
|
|
||||||
if [ -e scripts/config ]
|
if [ -e auto/config ]
|
||||||
then
|
then
|
||||||
rm -f .stage/config
|
rm -f .stage/config
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -10,9 +10,9 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Read meta config
|
# Read meta config
|
||||||
if [ "${1}" != "noautoconfig" ] && [ -x scripts/config ]
|
if [ "${1}" != "noautoconfig" ] && [ -x auto/config ]
|
||||||
then
|
then
|
||||||
./scripts/config ${@}
|
./auto/config ${@}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${1}" = "noautoconfig" ]
|
if [ "${1}" = "noautoconfig" ]
|
||||||
|
@ -210,14 +210,14 @@ Local_arguments ()
|
||||||
rmdir --ignore-fail-on-non-empty config
|
rmdir --ignore-fail-on-non-empty config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d scripts/functions ]
|
if [ -d auto/functions ]
|
||||||
then
|
then
|
||||||
rmdir --ignore-fail-on-non-empty scripts/functions
|
rmdir --ignore-fail-on-non-empty auto/functions
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d scripts ]
|
if [ -d auto ]
|
||||||
then
|
then
|
||||||
rmdir --ignore-fail-on-non-empty scripts
|
rmdir --ignore-fail-on-non-empty auto
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -1246,7 +1246,7 @@ LH_SOURCE="${LH_SOURCE}"
|
||||||
LH_SOURCE_IMAGES="${LH_SOURCE_IMAGES}"
|
LH_SOURCE_IMAGES="${LH_SOURCE_IMAGES}"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
mkdir -p scripts/functions
|
mkdir -p auto/functions
|
||||||
|
|
||||||
if [ "${CONFIG}" = "clone" ] # FIXME
|
if [ "${CONFIG}" = "clone" ] # FIXME
|
||||||
then
|
then
|
||||||
|
|
|
@ -52,9 +52,9 @@ fi
|
||||||
mkdir -p source/debian-live
|
mkdir -p source/debian-live
|
||||||
cp -a config source/debian-live
|
cp -a config source/debian-live
|
||||||
|
|
||||||
if Find_files scripts/*
|
if Find_files auto/*
|
||||||
then
|
then
|
||||||
cp -a scripts source/debian-live
|
cp -a auto source/debian-live
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create tarball
|
# Create tarball
|
||||||
|
|
|
@ -9,9 +9,9 @@ do
|
||||||
done
|
done
|
||||||
|
|
||||||
# Source local functions
|
# Source local functions
|
||||||
if ls scripts/functions/*.sh > /dev/null 2>&1
|
if ls auto/functions/* > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
for FUNCTION in scripts/functions/*.sh
|
for FUNCTION in auto/functions/*
|
||||||
do
|
do
|
||||||
. "${FUNCTION}"
|
. "${FUNCTION}"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue