X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/6a4ba789204bae8c3d442d4d11adab3b8c436172..02fa01b23003eb4429392092cd0282d44a11cea8:/scripts/installation_check.pl diff --git a/scripts/installation_check.pl b/scripts/installation_check.pl index 95a93c971..db4ae24c7 100755 --- a/scripts/installation_check.pl +++ b/scripts/installation_check.pl @@ -146,9 +146,28 @@ exit !!@missing_modules; sub check_latex { my ($res) = check_kpsewhich(); print_result("Looking for LaTeX kpsewhich", $res); + + # no pdfx -> no zugferd possible + my $ret = kpsewhich('template/print/', 'sty', 'pdfx'); + die "Cannot use pdfx. Please install this package first (debian: apt install texlive-latex-extra)" if $ret; + # check version 2018 + my $latex = $::lx_office_conf{applications}->{latex} || 'pdflatex'; + my $pdfx = (system ${latex} . ' --interaction=batchmode "\documentclass{minimal} \RequirePackage{pdfx} \csname @ifpackagelater\endcsname{pdfx}{2018/12/22}{}{\show\relax} \begin{document} \end{document}"'); + + print_result ("Looking for pdfx version 2018 or higher", !$pdfx); + push @missing_modules, \(name => 'pdfx') if $pdfx; + if ($res) { check_template_dir($_) for SL::InstallationCheck::template_dirs($master_templates); } + print STDERR <