1.1 --- a/scripts/crosstool.sh Fri Nov 28 23:31:02 2008 +0000
1.2 +++ b/scripts/crosstool.sh Fri Nov 28 23:33:04 2008 +0000
1.3 @@ -284,7 +284,7 @@
1.4 "") CT_BUILD=$("${CT_BUILD_PREFIX}gcc${CT_BUILD_SUFFIX}" -dumpmachine);;
1.5 esac
1.6
1.7 - # Prepare mangling patterns to later modifyu BUILD and HOST (see below)
1.8 + # Prepare mangling patterns to later modify BUILD and HOST (see below)
1.9 case "${CT_TOOLCHAIN_TYPE}" in
1.10 cross)
1.11 CT_HOST="${CT_BUILD}"
1.12 @@ -315,7 +315,6 @@
1.13
1.14 # Now we have mangled our BUILD and HOST tuples, we must fake the new
1.15 # cross-tools for those mangled tuples.
1.16 - BANG='!'
1.17 CT_DoLog DEBUG "Making build system tools available"
1.18 mkdir -p "${CT_PREFIX_DIR}/bin"
1.19 for m in BUILD HOST; do
1.20 @@ -386,7 +385,7 @@
1.21 # Some makeinfo versions are a pain in [put your most sensible body part here].
1.22 # Go ahead with those, by creating a wrapper that keeps partial files, and that
1.23 # never fails:
1.24 - echo -e "#!/bin/sh\n$(CT_Which makeinfo) --force \"\${@}\"\ntrue" >"${CT_PREFIX_DIR}/bin/makeinfo"
1.25 + printf "#${BANG}/bin/sh\n$(CT_Which makeinfo) --force \"\${@}\"\ntrue\n" >"${CT_PREFIX_DIR}/bin/makeinfo"
1.26 chmod 700 "${CT_PREFIX_DIR}/bin/makeinfo"
1.27
1.28 # Help gcc