From 5cc722828d1314a5cb3aaf9c00f2f7cad1988c95 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 30 Apr 2010 18:17:54 +0000 Subject: pdfjam update git-svn-id: svn://tug.org/texlive/trunk@18056 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/libexec/ctan2tds | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Master/tlpkg') diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index 651cbc117cd..a45d2e945bc 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -2182,6 +2182,7 @@ sub domans my $manpatt = $specialmans{$package}; return unless $manpatt; &install ("$TOPDEST/texmf/doc/man/man1/", $manpatt); + &tl_man_to_pdf (); # make pdfs for them } # When a package has man pages, we want to update the pdf versions of @@ -2201,7 +2202,11 @@ sub tl_man_to_pdf for my $man (<$pkg_man/man1/*>) { (my $pdf_man = $man) =~ s,^.*/,,; # just foo.1, no directories $pdf_man =~ s/1$/man1.pdf/; # foo.1 -> foo.man1.pdf - &SYSTEM ("$CP $Master_man/man1/$pdf_man $pkg_man/man1"); # copy existing + # + my $Master_pdf_man = "$Master_man/man1/$pdf_man"; + if (-r $Master_pdf_man) { + &SYSTEM ("$CP $Master_pdf_man $pkg_man/man1/"); # copy existing + } } &SYSTEM ("cd $pkg_man && make DIR=man1"); # build new pdfs -- cgit v1.2.3