summaryrefslogtreecommitdiff
path: root/scripts/crosstool.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-11-28 23:33:04 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-11-28 23:33:04 (GMT)
commitc2a76991cea4488ef46cc4e3f1747f1a6e573f65 (patch)
tree500714385214d9e40e98eeea3d35349703a2e917 /scripts/crosstool.sh
parentb93e4d727b159c68c79c302dca2d37bde368f33d (diff)
Minor POSIX compliance, and typo.
/trunk/scripts/crosstool.sh | 5 2 3 0 ++--- /trunk/scripts/functions | 3 2 1 0 ++- 2 files changed, 4 insertions(+), 4 deletions(-)
Diffstat (limited to 'scripts/crosstool.sh')
-rwxr-xr-xscripts/crosstool.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/crosstool.sh b/scripts/crosstool.sh
index d077945..a2322fe 100755
--- a/scripts/crosstool.sh
+++ b/scripts/crosstool.sh
@@ -284,7 +284,7 @@ if [ -z "${CT_RESTART}" ]; then
"") CT_BUILD=$("${CT_BUILD_PREFIX}gcc${CT_BUILD_SUFFIX}" -dumpmachine);;
esac
- # Prepare mangling patterns to later modifyu BUILD and HOST (see below)
+ # Prepare mangling patterns to later modify BUILD and HOST (see below)
case "${CT_TOOLCHAIN_TYPE}" in
cross)
CT_HOST="${CT_BUILD}"
@@ -315,7 +315,6 @@ if [ -z "${CT_RESTART}" ]; then
# Now we have mangled our BUILD and HOST tuples, we must fake the new
# cross-tools for those mangled tuples.
- BANG='!'
CT_DoLog DEBUG "Making build system tools available"
mkdir -p "${CT_PREFIX_DIR}/bin"
for m in BUILD HOST; do
@@ -386,7 +385,7 @@ if [ -z "${CT_RESTART}" ]; then
# Some makeinfo versions are a pain in [put your most sensible body part here].
# Go ahead with those, by creating a wrapper that keeps partial files, and that
# never fails:
- echo -e "#!/bin/sh\n$(CT_Which makeinfo) --force \"\${@}\"\ntrue" >"${CT_PREFIX_DIR}/bin/makeinfo"
+ printf "#${BANG}/bin/sh\n$(CT_Which makeinfo) --force \"\${@}\"\ntrue\n" >"${CT_PREFIX_DIR}/bin/makeinfo"
chmod 700 "${CT_PREFIX_DIR}/bin/makeinfo"
# Help gcc