summaryrefslogtreecommitdiff
path: root/scripts/build/tools.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/tools.sh')
-rw-r--r--scripts/build/tools.sh14
1 files changed, 9 insertions, 5 deletions
diff --git a/scripts/build/tools.sh b/scripts/build/tools.sh
index 693893c..bb07c9a 100644
--- a/scripts/build/tools.sh
+++ b/scripts/build/tools.sh
@@ -3,11 +3,15 @@
# List all tools facilities, and parse their scripts
CT_TOOLS_FACILITY_LIST=
for f in "${CT_LIB_DIR}/scripts/build/tools/"*.sh; do
- is_enabled=
- . "${f}"
- f=$(basename "${f}" .sh)
- if [ "${is_enabled}" = "y" ]; then
- CT_TOOLS_FACILITY_LIST="${CT_TOOLS_FACILITY_LIST} ${f#???-}"
+ _f="$(basename "${f}" .sh)"
+ _f="${_f#???-}"
+ __f="CT_TOOL_${_f}"
+ if [ "${!__f}" = "y" ]; then
+ CT_DoLog DEBUG "Enabling tool '${_f}'"
+ . "${f}"
+ CT_TOOLS_FACILITY_LIST="${CT_TOOLS_FACILITY_LIST} ${_f}"
+ else
+ CT_DoLog DEBUG "Disabling tool '${_f}'"
fi
done