diff options
author | Karl Berry <karl@freefriends.org> | 2017-09-13 22:05:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-09-13 22:05:58 +0000 |
commit | 9c81c7895426957aac1406ed821d52edb456f85b (patch) | |
tree | 8916b210382241519a53779b66df67d86619d375 /Build | |
parent | ce7643832e815cb88d6b094fd4a6230d6b8df779 (diff) |
pst2pdf (14sep17)
git-svn-id: svn://tug.org/texlive/trunk@45290 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rwxr-xr-x | Build/source/texk/texlive/linked_scripts/pst2pdf/pst2pdf.pl | 10 | ||||
-rwxr-xr-x | Build/source/texk/texlive/linked_scripts/texlive/tlmgr.pl | 64 |
2 files changed, 34 insertions, 40 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/pst2pdf/pst2pdf.pl b/Build/source/texk/texlive/linked_scripts/pst2pdf/pst2pdf.pl index 01b7a946e5f..6ce08cb98fe 100755 --- a/Build/source/texk/texlive/linked_scripts/pst2pdf/pst2pdf.pl +++ b/Build/source/texk/texlive/linked_scripts/pst2pdf/pst2pdf.pl @@ -5,7 +5,7 @@ use strict; # to be sure, that all is safe ... :-) use v5.18; # $Id: pst2pdf.pl 119 2014-09-24 12:04:09Z herbert $ # v. 0.16 2014-09-14 simplify the use of PSTricks with pdf -# 2014-09-24 (c) Herbert Voss <hvoss@tug.org> +# 2017-09-11 (c) Herbert Voss <hvoss@tug.org> # Pablo González Luengo <pablogonz@yahoo.com> # # This program is free software; you can redistribute it and/or modify @@ -59,10 +59,10 @@ my $other = "other"; # search other verbatim environment #---------------- Program identification, options and help ------------- my $program = 'pst2pdf'; -my $nv='v0.16'; -my $ident = '$Id: pst2pdf.pl 119 2014-09-24 12:04:09Z herbert $'; +my $nv='v0.17'; +my $ident = '$Id: pst2pdf.pl 119 2017-09-11 12:04:09Z herbert $'; my $copyright = <<END_COPYRIGHT ; -Copyright 2011-2014 (c) Herbert Voss <hvoss\@tug.org> and Pablo González. +Copyright 2011-2017 (c) Herbert Voss <hvoss\@tug.org> and Pablo González. END_COPYRIGHT my $licensetxt= <<END_LICENSE ; This program is free software; you can redistribute it and/or modify @@ -502,7 +502,7 @@ my $archivo; close $ENTRADA; ## Partición del documento -my($cabeza,$cuerpo,$final) = $archivo =~ m/\A (.+? ^\\begin{document}) (.+) (^ \\end{document} .*) \z/msx; +my($cabeza,$cuerpo,$final) = $archivo =~ m/\A (.+? ^\\begin\{document\}) (.+) (^ \\end\{document\} .*) \z/msx; ## Variables y constantes my $no_del = "\0"; diff --git a/Build/source/texk/texlive/linked_scripts/texlive/tlmgr.pl b/Build/source/texk/texlive/linked_scripts/texlive/tlmgr.pl index 044438f55c8..c3d64c0bf41 100755 --- a/Build/source/texk/texlive/linked_scripts/texlive/tlmgr.pl +++ b/Build/source/texk/texlive/linked_scripts/texlive/tlmgr.pl @@ -1,13 +1,13 @@ #!/usr/bin/env perl -# $Id: tlmgr.pl 45190 2017-09-01 08:01:01Z preining $ +# $Id: tlmgr.pl 45275 2017-09-12 00:47:29Z preining $ # # Copyright 2008-2017 Norbert Preining # This file is licensed under the GNU General Public License version 2 # or any later version. # -my $svnrev = '$Revision: 45190 $'; -my $datrev = '$Date: 2017-09-01 10:01:01 +0200 (Fri, 01 Sep 2017) $'; +my $svnrev = '$Revision: 45275 $'; +my $datrev = '$Date: 2017-09-12 02:47:29 +0200 (Tue, 12 Sep 2017) $'; my $tlmgrrevision; my $prg; if ($svnrev =~ m/: ([0-9]+) /) { @@ -3702,9 +3702,9 @@ sub show_one_package_detail { print "installed: No\n"; return($F_OK); } - #if (!$remotetlpdb) { - # init_tlmedia_or_die(); - #} + if (!$remotetlpdb) { + init_tlmedia_or_die(1); + } if (defined($tag)) { if (!$remotetlpdb->is_virtual) { tlwarn("$prg: specifying implicit tags not allowed for non-virtual databases!\n"); @@ -3724,40 +3724,34 @@ sub show_one_package_detail { tlwarn("$prg: Cannot find package $pkg in repository $tag\n"); return($F_WARNING); } - if ($remotetlpdb->is_virtual) { + my @cand = $remotetlpdb->candidates($pkg); + if (@cand) { + # if @cand is not empty, then we have a virtual database # we might have a package that is available in a # subsidiary repository, but not installable # because it is not pinned # we will list it but warn about this fact - my @cand = $remotetlpdb->candidates($pkg); - if (@cand) { - my $first = shift @cand; - if (defined($first)) { - tlwarn("$prg: strange, we have a first candidate but no tlp: $pkg\n"); - return($F_WARNING); - } - # already shifted away the first element - if ($#cand >= 0) { - # recursively showing all tags, but warn - print "package: ", $pkg, "\n"; - print "WARNING: This package is not pinned but present in subsidiary repositories\n"; - print "WARNING: As long as it is not pinned it is not installable.\n"; - print "WARNING: Listing all available copies of the package.\n"; - my @aaa; - for my $a (@cand) { - my ($t,$r) = split(/\//, $a, 2); - push @aaa, "$pkg" . '@' . $t; - } - $ret |= action_info(@aaa); - return($ret); - } else { - tlwarn("$prg: strange, package listed but no residual candidates: $pkg\n"); - return($F_WARNING); - } - } else { - tlwarn("$prg: strange, package listed but no candidates: $pkg\n"); + # useless test, @cand will always be defined becuase $remotetlpdb is virtual + my $first = shift @cand; + if (defined($first)) { + tlwarn("$prg: strange, we have a first candidate but no tlp: $pkg\n"); return($F_WARNING); } + # already shifted away the first element + if ($#cand >= 0) { + # recursively showing all tags, but warn + print "package: ", $pkg, "\n"; + print "WARNING: This package is not pinned but present in subsidiary repositories\n"; + print "WARNING: As long as it is not pinned it is not installable.\n"; + print "WARNING: Listing all available copies of the package.\n"; + my @aaa; + for my $a (@cand) { + my ($t,$r) = split(/\//, $a, 2); + push @aaa, "$pkg" . '@' . $t; + } + $ret |= action_info(@aaa); + return($ret); + } } # we didn't find a package like this, so use search info("$prg: cannot find package $pkg, searching for other matches:\n"); @@ -9078,7 +9072,7 @@ This script and its documentation were written for the TeX Live distribution (L<http://tug.org/texlive>) and both are licensed under the GNU General Public License Version 2 or later. -$Id: tlmgr.pl 45190 2017-09-01 08:01:01Z preining $ +$Id: tlmgr.pl 45275 2017-09-12 00:47:29Z preining $ =cut # to remake HTML version: pod2html --cachedir=/tmp tlmgr.pl >/tmp/tlmgr.html |