latex-package.eclass: Use halt on error and nonstopmode for latex invocations to...
authorAlexis Ballier <aballier@gentoo.org>
Wed, 14 Jun 2017 10:58:40 +0000 (12:58 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Wed, 14 Jun 2017 10:58:40 +0000 (12:58 +0200)
eclass/latex-package.eclass

index 95d98e673700a2f6b99c6230ddb8572e9eff5cbe..f42b6fdd25d8dfae745a8015cdaae803812e6f03 100644 (file)
@@ -139,8 +139,8 @@ latex-package_src_doinstall() {
                                        do
                                                [ -n "${LATEX_PACKAGE_SKIP}" ] && has ${i##*/} ${LATEX_PACKAGE_SKIP} && continue
                                                einfo "Making documentation: $i"
-                                               if pdflatex ${LATEX_DOC_ARGUMENTS} --interaction=batchmode $i ; then
-                                                       pdflatex ${LATEX_DOC_ARGUMENTS} --interaction=batchmode $i || die
+                                               if pdflatex ${LATEX_DOC_ARGUMENTS} --halt-on-error --interaction=nonstopmode $i ; then
+                                                       pdflatex ${LATEX_DOC_ARGUMENTS} --halt-on-error --interaction=nonstopmode $i || die
                                                else
                                                        einfo "pdflatex failed, trying texi2dvi"
                                                        texi2dvi -q -c --language=latex $i || die
@@ -205,7 +205,7 @@ latex-package_src_compile() {
        for i in `find \`pwd\` -maxdepth 1 -type f -name "*.ins"`
        do
                einfo "Extracting from $i"
-               latex --interaction=batchmode $i || die
+               latex --halt-on-error --interaction=nonstopmode $i || die
        done
 }