From f0434b7c89f5ad48065e0500fa8be29526c3f316 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 28 Jul 2015 05:41:29 +0000 Subject: paper handling - only call subs for packages that are installed git-svn-id: svn://tug.org/texlive/trunk@37973 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/TeXLive/TLPaper.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Master/tlpkg/TeXLive') diff --git a/Master/tlpkg/TeXLive/TLPaper.pm b/Master/tlpkg/TeXLive/TLPaper.pm index e63419b0a6f..008cca9d662 100644 --- a/Master/tlpkg/TeXLive/TLPaper.pm +++ b/Master/tlpkg/TeXLive/TLPaper.pm @@ -29,6 +29,7 @@ BEGIN { @EXPORT_OK = qw( %paper_config_path_component %paper_config_name + %prog_to_pkg ); @EXPORT = @EXPORT_OK; } @@ -86,6 +87,18 @@ my %default_paper_config_name = ( "psutils" => "paper.cfg", ); +# seems superficial, but we don't have a guarantee +# that the package names and the 'call' names are +# always the same. +our %prog_to_pkg = ( + "xdvi" => 'xdvi', + "pdftex" => 'pdftex', + "dvips" => 'dvips', + "dvipdfmx" => 'dvipdfmx', + "context" => 'context', + "psutils" => 'psutils', +); + # Output is done to the components in this hash. # If a value is undefined, we take the one from %default_... # -- cgit v1.2.3