Backport #698 from trunk: 1.1
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Jun 19 22:02:17 2008 +0000 (2008-06-19)
branch1.1
changeset 587c27787270792
parent 586 363c7dd41131
child 588 2209aaba05ab
Backport #698 from trunk:
Workaround makeinfo being picky at its input (we don't need documentation, do we?)

/branches/1.1/scripts/crosstool.sh | 7 7 0 0 +++++++
1 file changed, 7 insertions(+)
scripts/crosstool.sh
     1.1 --- a/scripts/crosstool.sh	Thu Jun 19 21:59:26 2008 +0000
     1.2 +++ b/scripts/crosstool.sh	Thu Jun 19 22:02:17 2008 +0000
     1.3 @@ -400,6 +400,12 @@
     1.4          fi |CT_DoLog DEBUG
     1.5      done
     1.6  
     1.7 +    # Some makeinfo versions are a pain in [put your most sensible body part here].
     1.8 +    # Go ahead with those, by creating a wrapper that keeps partial files, and that
     1.9 +    # never fails:
    1.10 +    echo -e "#!/bin/sh\n$(CT_Which makeinfo) --force \"\${@}\"\ntrue" >"${CT_PREFIX_DIR}/bin/makeinfo"
    1.11 +    chmod 700 "${CT_PREFIX_DIR}/bin/makeinfo"
    1.12 +
    1.13      # Help gcc
    1.14      CT_CFLAGS_FOR_HOST=
    1.15      [ "${CT_USE_PIPES}" = "y" ] && CT_CFLAGS_FOR_HOST="${CT_CFLAGS_FOR_HOST} -pipe"
    1.16 @@ -500,6 +506,7 @@
    1.17      find "${CT_PREFIX_DIR}/bin" -name "${CT_BUILD}-"'*' -exec rm -fv {} \; |CT_DoLog DEBUG
    1.18      find "${CT_PREFIX_DIR}/bin" -name "${CT_UNIQ_BUILD}-"'*' -exec rm -fv {} \; |CT_DoLog DEBUG
    1.19      find "${CT_PREFIX_DIR}/bin" -name "${CT_HOST}-"'*' -exec rm -fv {} \; |CT_DoLog DEBUG
    1.20 +    rm -fv "${CT_PREFIX_DIR}/bin/makeinfo" |CT_DoLog DEBUG
    1.21  
    1.22      # Install the /populator/
    1.23      CT_DoLog EXTRA "Installing the populate helper"