From 4ffc1f87ae8dc7ec2e6e154a8d7708f03ee777bd Mon Sep 17 00:00:00 2001 From: Manuel Pégourié-Gonnard Date: Tue, 13 Jul 2010 16:15:10 +0000 Subject: Include CTAN url in README.TEXLIVE. git-svn-id: svn://tug.org/texlive/trunk@19425 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/libexec/ctan2tds | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'Master') diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index fd2841a8d31..645b815a86a 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -1757,7 +1757,6 @@ $standardclean = '\.head|\.tmp|\.dvi|\.log|\.out|\.aux|\.toc|\.lof|\.lot' 'ednotes' => 'perpage.sty', # copy from bigfoot 'easy' => '.*\.pdf|doc.html.tgz', # no source 'epslatex-fr' => 'R?Danger.eps', # unneeded - 'eqexam' => 'doc/eqexamman.pdf', # no source 'flacards' => 'flacards.pdf', 'gfsartemisia' => 'A*Specimen.pdf', # nonfree 'gfsbaskerville'=> 'B*Specimen.pdf', # nonfree @@ -1770,7 +1769,6 @@ $standardclean = '\.head|\.tmp|\.dvi|\.log|\.out|\.aux|\.toc|\.lof|\.lot' 'linguex' => 'cgloss4e.sty', # symlink 'piechartmp' => 'piechartmp.pdf', 'ptptex' => '(overcite|cite|wrapfig).sty', # duplicated - 'rangen' => 'doc/rangen_man.pdf', # no source 'stix' => 'STIX_Font_Release_Documentation_2010.pdf', # no source 'stubs' => 'stubs.pdf', # no source 'susy' => 'susy.pdf', # no source @@ -2403,13 +2401,21 @@ sub killfiles } if ($more && @delfiles) { + # get package url on CTAN + my $ctan_url = '.'; + chomp (my $ctan_root = `tlpkginfo --ctan-root`); + chomp (my $ctan_dir = `tlpkginfo --ctan-dir $packagedir`); + if (not $?) { + $ctan_dir =~ s!$ctan_root/!!; + $ctan_url = " at\n\thttp://mirror.ctan.org/$ctan_dir"; + } # create/update README.TEXLIVE. open (RTL, ">README.TEXLIVE") || warn "open(>README.TEXLIVE) failed: $!"; - print RTL <<'EOF'; + print RTL <<"EOF"; The following files have been removed in the TeX Live installation of the current package, typically due to duplication, lack of space, or -missing source code. You can find these files on CTAN. If questions or -concerns, email tex-live@tug.org. +missing source code. You can find these files on CTAN$ctan_url +If questions or concerns, email tex-live\@tug.org. EOF foreach my $f (@delfiles) { -- cgit v1.2.3