summaryrefslogtreecommitdiff
path: root/Master/tlpkg
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-04-30 18:17:54 +0000
committerKarl Berry <karl@freefriends.org>2010-04-30 18:17:54 +0000
commit5cc722828d1314a5cb3aaf9c00f2f7cad1988c95 (patch)
treeed4d66c4b46433779ee208db6d5af7b3b3e85b40 /Master/tlpkg
parent0e290b30838946f452aa3ea2fd58654e9cc68b1e (diff)
pdfjam update
git-svn-id: svn://tug.org/texlive/trunk@18056 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg')
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds7
1 files changed, 6 insertions, 1 deletions
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