[tex-k] texLive 2011 updmap problem
Norbert Preining
preining at logic.at
Sat Sep 3 14:01:48 CEST 2011
On Sa, 03 Sep 2011, Norbert Preining wrote:
> Reinhard, or anyone else, could you please test the following patch,
> preferrably on both Windows and Unix machines:
Better patch which dies if there is no argument availabl ein the shift
===================================================================
--- updmap.pl (revision 23775)
+++ updmap.pl (working copy)
@@ -200,6 +200,23 @@
# process cmd line options
#
sub processOptions {
+ my $oldconfig = Getopt::Long::Configure(qw(pass_through));
+ sub read_set_options {
+ my ($opt, $val) = @_;
+ # check if = occurs in $val, if not, get the next argument
+ if ($val =~ m/=/) {
+ push @setoptions, $val;
+ } else {
+ my $vv = shift @ARGV;
+ die "Try \"$0 --help\" for more information.\n"
+ if !defined($vv);
+ push @setoptions, "$val=$vv";
+ }
+ }
+ GetOptions("setoption=s@" => \&read_set_options) or
+ die "Try \"$0 --help\" for more information.\n";
+ Getopt::Long::Configure($oldconfig);
+
unless (&GetOptions (
"cnffile=s" => \$cnfFile,
"copy" => \$copy,
@@ -217,7 +234,8 @@
"outputdir=s" => \$outputdir,
"pdftexoutputdir=s" => \$pdftexoutputdir,
"q|quiet|silent" => \$quiet,
- "setoption=s{1,2}" => \@setoptions,
+ # handled above
+ #"setoption=s{1,2}" => \@setoptions,
"showoptions=s" => \@showoptions,
"syncwithtrees" => \$syncwithtrees,
"version" => sub { print &version(); exit(0); },
Best wishes
Norbert
------------------------------------------------------------------------
Norbert Preining preining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan TeX Live & Debian Developer
DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------
OUNDLE (vb.)
To walk along leaning sideways, with one arm hanging limp and dragging
one leg behind the other. Most commonly used by actors in amateur
production of Richard III, or by people carrying a heavy suitcase in
one hand.
--- Douglas Adams, The Meaning of Liff
More information about the tex-k
mailing list