Minor POSIX compliance, and typo.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Nov 28 23:33:04 2008 +0000 (2008-11-28)
changeset 108388685bc8ae14
parent 1082 cfdaef41cd77
child 1086 dadcb6221683
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(-)
scripts/crosstool.sh
scripts/functions
     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
     2.1 --- a/scripts/functions	Fri Nov 28 23:31:02 2008 +0000
     2.2 +++ b/scripts/functions	Fri Nov 28 23:33:04 2008 +0000
     2.3 @@ -52,8 +52,9 @@
     2.4  CT_LOG_LEVEL_DEBUG=4
     2.5  CT_LOG_LEVEL_ALL=5
     2.6  
     2.7 -# Make it easy to use \n
     2.8 +# Make it easy to use \n and !
     2.9  CR=$(printf "\n")
    2.10 +BANG='!'
    2.11  
    2.12  # A function to log what is happening
    2.13  # Different log level are available: