commit:     71be4aab42ffdfbe2177b1ba6639f9bf935251f7
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Mon Jul  9 08:25:00 2018 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Mon Jul  9 08:25:00 2018 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=71be4aab

scripts/bootstrap-prefix.sh: improve the fake makeinfo.

  In the glibc build,

    makeinfo -P <dir> --output=libc.info libc.texinfo

  is called and we should ignore -P.

Credit: huiyiqun

 scripts/bootstrap-prefix.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 07695383bf..ad21815f9e 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -1648,14 +1648,14 @@ bootstrap_stage3() {
 
        # GCC sometimes decides that it needs to run makeinfo to update some
        # info pages from .texi files.  Obviously we don't care at this
-       # stage and rather have it continue instead of abort the build
+       # stage and rather have it continue instead of aborting the build
        [[ -x "${ROOT}"/usr/bin/makeinfo ]] || cat > "${ROOT}"/usr/bin/makeinfo 
<<-EOF
                #!${ROOT}/bin/bash
                echo "makeinfo GNU texinfo 4.13"
                for a in \$@; do
                case \$a in
                --*) f=\$(echo "\$a" | sed -r 's,--.*=(.*),\1,') ;;
-               -*) ;;
+               -*) continue ;;
                *) f=\$a ;;
                esac
                [[ -e \$f ]] || touch \$f

Reply via email to