diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-06-15 22:02:45 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-06-15 22:02:45 +0000 |
commit | 1eaa6e6cbfffd7ac8c70ed11d87d348a6c11a49b (patch) | |
tree | d98543aeeed04485d0ec1280fde992dffb0b5a81 | |
parent | d48ade3ec87496c9cce9482efe8b998e59af9901 (diff) | |
download | crosstool-ng-1eaa6e6cbfffd7ac8c70ed11d87d348a6c11a49b.tar.gz crosstool-ng-1eaa6e6cbfffd7ac8c70ed11d87d348a6c11a49b.tar.bz2 crosstool-ng-1eaa6e6cbfffd7ac8c70ed11d87d348a6c11a49b.zip |
Some makeinfo versions are a pain in [somewhere very painful].
Work this around with a wrapper that always succeeds, and leave incomplete files in place.
/trunk/scripts/crosstool.sh | 7 7 0 0 +++++++
1 file changed, 7 insertions(+)
-rwxr-xr-x | scripts/crosstool.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/crosstool.sh b/scripts/crosstool.sh index 91cdadbf..7f401794 100755 --- a/scripts/crosstool.sh +++ b/scripts/crosstool.sh @@ -402,6 +402,12 @@ if [ -z "${CT_RESTART}" ]; then fi |CT_DoLog DEBUG done + # 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" + chmod 700 "${CT_PREFIX_DIR}/bin/makeinfo" + # Help gcc CT_CFLAGS_FOR_HOST= [ "${CT_USE_PIPES}" = "y" ] && CT_CFLAGS_FOR_HOST="${CT_CFLAGS_FOR_HOST} -pipe" @@ -502,6 +508,7 @@ if [ "${CT_ONLY_DOWNLOAD}" != "y" -a "${CT_ONLY_EXTRACT}" != "y" ]; then find "${CT_PREFIX_DIR}/bin" -name "${CT_BUILD}-"'*' -exec rm -fv {} \; |CT_DoLog DEBUG find "${CT_PREFIX_DIR}/bin" -name "${CT_UNIQ_BUILD}-"'*' -exec rm -fv {} \; |CT_DoLog DEBUG find "${CT_PREFIX_DIR}/bin" -name "${CT_HOST}-"'*' -exec rm -fv {} \; |CT_DoLog DEBUG + rm -fv "${CT_PREFIX_DIR}/bin/makeinfo" |CT_DoLog DEBUG # Install the /populator/ CT_DoLog EXTRA "Installing the populate helper" |