# HG changeset patch # User Richard Strand # Date 1263327699 -3600 # Node ID f581da7fe34e2695912a1119db990cb731c2a8ce # Parent dbd5078816f93798b6811b82a900545f6d36035a scripts/crosstool-ng: Change overide bin dir Change the overide bin dir so it can be used by companion tools Signed-off-by: Richard Strand [yann.morin.1998@anciens.enib.fr: more generic overide tools dir] Signed-off-by: "Yann E. MORIN" diff -r dbd5078816f9 -r f581da7fe34e scripts/crosstool-NG.sh.in --- a/scripts/crosstool-NG.sh.in Sun Jan 10 17:43:23 2010 +0100 +++ b/scripts/crosstool-NG.sh.in Tue Jan 12 21:21:39 2010 +0100 @@ -77,17 +77,17 @@ # Contains symlinks to the tools found by ./configure # Note: CT_DoLog and CT_DoExecLog do not use any of those tool, so # they can be safely used -CT_BIN_OVERIDE_DIR="${CT_WORK_DIR}/bin" -CT_DoLog DEBUG "Creating bin-overide for tools in '${CT_BIN_OVERIDE_DIR}'" -CT_DoExecLog DEBUG mkdir -p "${CT_BIN_OVERIDE_DIR}" +CT_TOOLS_OVERIDE_DIR="${CT_WORK_DIR}/tools" +CT_DoLog DEBUG "Creating bin-overide for tools in '${CT_TOOLS_OVERIDE_DIR}'" +CT_DoExecLog DEBUG mkdir -p "${CT_TOOLS_OVERIDE_DIR}/bin" cat "${CT_LIB_DIR}/paths.mk" |while read trash line; do tool="${line%%=*}" path="${line#*=}" CT_DoLog DEBUG "Creating script-override for '${tool}' -> '${path}'" - printf "#${BANG}${CT_SHELL}\nexec '${path}' \"\${@}\"\n" >"${CT_BIN_OVERIDE_DIR}/${tool}" - CT_DoExecLog ALL chmod 700 "${CT_BIN_OVERIDE_DIR}/${tool}" + printf "#${BANG}${CT_SHELL}\nexec '${path}' \"\${@}\"\n" >"${CT_TOOLS_OVERIDE_DIR}/bin/${tool}" + CT_DoExecLog ALL chmod 700 "${CT_TOOLS_OVERIDE_DIR}/bin/${tool}" done -export PATH="${CT_BIN_OVERIDE_DIR}:${PATH}" +export PATH="${CT_TOOLS_OVERIDE_DIR}/bin:${PATH}" # Start date. Can't be done until we know the locale # Also requires the bin-override tools