From 74979fb19b2c7220dab4196c0d34e0c29b341b09 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sat, 28 Apr 2018 16:41:16 -0700 Subject: Add checking for *sum and unzip Also improve logging (add an ability to log commands/files/environment variables to config.log) Signed-off-by: Alexey Neyman --- scripts/crosstool-NG.sh | 10 ++++++---- scripts/override/__default | 3 --- 2 files changed, 6 insertions(+), 7 deletions(-) delete mode 100644 scripts/override/__default (limited to 'scripts') diff --git a/scripts/crosstool-NG.sh b/scripts/crosstool-NG.sh index d4414b59..9bd80ad3 100644 --- a/scripts/crosstool-NG.sh +++ b/scripts/crosstool-NG.sh @@ -115,11 +115,13 @@ cat "${paths_sh_location}" |while read trash line; do tool="${line%%=*}" # Suppress extra quoting eval path=${line#*=} - if [ -r "${CT_LIB_DIR}/scripts/override/$tool" ]; then - tmpl="${CT_LIB_DIR}/scripts/override/$tool" - else - tmpl="${CT_LIB_DIR}/scripts/override/__default" + if [ ! -r "${CT_LIB_DIR}/scripts/override/$tool" ]; then + if [ -n "${path}" ]; then + CT_DoExecLog ALL ln -s "${path}" "${CT_TOOLS_OVERRIDE_DIR}/bin/${tool}" + fi + continue fi + tmpl="${CT_LIB_DIR}/scripts/override/$tool" CT_DoLog DEBUG "Creating script-override for '${tool}' -> '${path}' using '${tmpl}' template" CT_DoExecLog ALL cp "${tmpl}" "${CT_TOOLS_OVERRIDE_DIR}/bin/${tool}" CT_DoExecLog ALL ${sed} -i -r \ diff --git a/scripts/override/__default b/scripts/override/__default deleted file mode 100644 index 977b1f52..00000000 --- a/scripts/override/__default +++ /dev/null @@ -1,3 +0,0 @@ -#!@CONFIG_SHELL@ - -exec @TOOL_PATH@ "$@" -- cgit v1.2.3