Use 'gawk', not plain 'awk'.
We need GNU Awk? Then check for, and use 'gawk', not plain 'awk'.
Be a little mre verbose if a tool was not found.
/trunk/configure | 7 4 3 0 ++++---
/trunk/scripts/build/kernel/linux.sh | 2 1 1 0 +-
/trunk/scripts/functions | 16 8 8 0 ++++++++--------
/trunk/scripts/saveSample.sh | 4 2 2 0 ++--
4 files changed, 15 insertions(+), 14 deletions(-)
1 # Wrapper to build the tools facilities
3 # List all tools facilities, and parse their scripts
4 CT_TOOLS_FACILITY_LIST=
5 for f in "${CT_LIB_DIR}/scripts/build/tools/"*.sh; do
6 _f="$(basename "${f}" .sh)"
9 if [ "${!__f}" = "y" ]; then
10 CT_DoLog DEBUG "Enabling tool '${_f}'"
12 CT_TOOLS_FACILITY_LIST="${CT_TOOLS_FACILITY_LIST} ${_f}"
14 CT_DoLog DEBUG "Disabling tool '${_f}'"
18 # Download the tools facilities
20 for f in ${CT_TOOLS_FACILITY_LIST}; do
25 # Extract and patch the tools facilities
27 for f in ${CT_TOOLS_FACILITY_LIST}; do
32 # Build the tools facilities
34 for f in ${CT_TOOLS_FACILITY_LIST}; do