diff options
Diffstat (limited to 'eclass/latex-package.eclass')
-rw-r--r-- | eclass/latex-package.eclass | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/eclass/latex-package.eclass b/eclass/latex-package.eclass index 4082e161b843..dfef7fc2836f 100644 --- a/eclass/latex-package.eclass +++ b/eclass/latex-package.eclass @@ -137,11 +137,16 @@ latex-package_src_doinstall() { continue einfo "Making documentation: ${i}" + local mypdflatex=( + pdflatex + ${LATEX_DOC_ARGUMENTS} + --halt-on-error + --interaction=nonstopmode + "${i}" + ) # some macros need compiler called twice, do it here. - set -- pdflatex ${LATEX_DOC_ARGUMENTS} \ - --halt-on-error --interaction=nonstopmode "${i}" - if "${@}"; then - "${@}" + if "${mypdflatex[@]}"; then + "${mypdflatex[@]}" else einfo "pdflatex failed, trying texi2dvi" texi2dvi -q -c --language=latex "${i}" || die @@ -195,6 +200,9 @@ latex-package_src_doinstall() { "all") latex-package_src_doinstall styles fonts bin doc ;; + *) + die "Unknown module: ${1}" + ;; esac shift done |