From 7d1b203d06408f9dcc360095b46b8e73e870ee3c Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sat, 28 Jan 2017 00:11:08 -0800 Subject: Add install wrapper ... to work around Gentoo's wrapper idiosyncrasy. Signed-off-by: Alexey Neyman --- scripts/crosstool-NG.sh.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts/crosstool-NG.sh.in') diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in index 41c3bcc5..b39dee4f 100644 --- a/scripts/crosstool-NG.sh.in +++ b/scripts/crosstool-NG.sh.in @@ -116,8 +116,12 @@ cat "${CT_LIB_DIR}/paths.sh" |while read trash line; do tmpl="${CT_LIB_DIR}/scripts/override/__default" fi CT_DoLog DEBUG "Creating script-override for '${tool}' -> '${path}' using '${tmpl}' template" - ${sed} -r -e "s#@CONFIG_SHELL@#${CT_CONFIG_SHELL}#g" \ - -e "s#@TOOL_PATH@#${path}#g" "${tmpl}" > "${CT_TOOLS_OVERRIDE_DIR}/bin/${tool}" + CT_DoExecLog ALL cp "${tmpl}" "${CT_TOOLS_OVERRIDE_DIR}/bin/${tool}" + CT_DoExecLog ALL ${sed} -i -r \ + -e "s#@CONFIG_SHELL@#${CT_CONFIG_SHELL}#g" \ + -e "s#@TOOL_PATH@#${path}#g" \ + -e "s#@TOOLS_OVERRIDE_DIR@#${CT_TOOLS_OVERRIDE_DIR}#g" \ + "${CT_TOOLS_OVERRIDE_DIR}/bin/${tool}" CT_DoExecLog ALL chmod 700 "${CT_TOOLS_OVERRIDE_DIR}/bin/${tool}" done export PATH="${CT_TOOLS_OVERRIDE_DIR}/bin:${PATH}" -- cgit v1.2.3