scripts/crosstool-NG.sh.in
changeset 2838 822af73497bf
parent 2801 21f4f28e60ec
child 2924 0eab838768b1
     1.1 --- a/scripts/crosstool-NG.sh.in	Mon Dec 12 21:41:16 2011 +0200
     1.2 +++ b/scripts/crosstool-NG.sh.in	Mon Jan 16 23:36:42 2012 +0100
     1.3 @@ -78,11 +78,13 @@
     1.4  CT_TOOLS_OVERIDE_DIR="${CT_WORK_DIR}/tools"
     1.5  CT_DoLog DEBUG "Creating bin-override for tools in '${CT_TOOLS_OVERIDE_DIR}'"
     1.6  CT_DoExecLog DEBUG mkdir -p "${CT_TOOLS_OVERIDE_DIR}/bin"
     1.7 -cat "${CT_LIB_DIR}/paths.mk" |while read trash line; do
     1.8 +cat "${CT_LIB_DIR}/paths.sh" |while read trash line; do
     1.9      tool="${line%%=*}"
    1.10      path="${line#*=}"
    1.11      CT_DoLog DEBUG "Creating script-override for '${tool}' -> '${path}'"
    1.12 -    printf "#${BANG}${CT_CONFIG_SHELL}\nexec '${path}' \"\${@}\"\n" >"${CT_TOOLS_OVERIDE_DIR}/bin/${tool}"
    1.13 +    # Note: we need to supress the " in the path because
    1.14 +    # there can be arguments in there (thanks autostuff...)
    1.15 +    printf "#${BANG}${CT_CONFIG_SHELL}\nexec ${path//\"/} \"\${@}\"\n" >"${CT_TOOLS_OVERIDE_DIR}/bin/${tool}"
    1.16      CT_DoExecLog ALL chmod 700 "${CT_TOOLS_OVERIDE_DIR}/bin/${tool}"
    1.17  done
    1.18  export PATH="${CT_TOOLS_OVERIDE_DIR}/bin:${PATH}"