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 # Makefile for the tools/ sub-directory
3 # Here, we can update the config.* scripts.
4 # If we're in CT_LIB_DIR, then CT_LIB_DIR == CT_TOP_DIR, and we can update those
5 # scripts for later inclusion mainline. If CT_LIB_DIR != CT_TOP_DIR, then those
6 # scripts are downloaded only for use in CT_TOP_DIR.
8 # ----------------------------------------------------------
12 @echo ' updatetools - Update the config tools'
14 # ----------------------------------------------------------
15 # Where to get tools from, and where to store them into
16 # The tools are: config.guess and config.sub
18 CONFIG_SUB_SRC="http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD"
19 CONFIG_SUB_DEST="$(CT_TOP_DIR)/tools/config.sub"
20 CONFIG_GUESS_SRC="http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD"
21 CONFIG_GUESS_DEST="$(CT_TOP_DIR)/tools/config.guess"
24 $(SILENT)mkdir -p $(CT_TOP_DIR)/tools
27 updatetools: $(CT_TOP_DIR)/tools $(CONFIG_SUB_DEST) $(CONFIG_GUESS_DEST)
29 # ----------------------------------------------------------
30 # How to retrieve the tools
33 $(SILENT)wget $(CONFIG_SUB_SRC) -O $@
34 $(SILENT)chmod u+rwx,go+rx-w $@
37 $(SILENT)wget $(CONFIG_GUESS_SRC) -O $@
38 $(SILENT)chmod u+rwx,go+rx-w $@
40 # ----------------------------------------------------------
44 @$(ECHO) " CLEAN tools"
45 $(SILENT)[ $(CT_TOP_DIR) = $(CT_LIB_DIR) ] || rm -rf $(CT_TOP_DIR)/tools