LaTeXML
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
# and post-uninstall stages of the build.
#======================================================================
our $OLD_LIBXML = grep { /OLD_LIBXML/ } @ARGV;
our $NOMKTEXLSR = grep { /NOMKTEXLSR/ } @ARGV;
our $KPSE_TOOLCHAIN = "";
our ($KPSEV, $TEXMF);
my ($texmfspec) = grep { /^TEXMF/ } @ARGV;
if ($texmfspec && $texmfspec =~ /^TEXMF\s*=(.*)$/) {
$TEXMF = $1;
local @ARGV = grep { $_ ne $texmfspec } @ARGV; } # Remove so MakeMaker doesn't fret.
our @EXCLUSIONS = ();
our $MORE_MACROS = {};
our $MORE_MAKERULES = '';
record_revision();
compile_MathGrammar();
install_TeXStyles();
extra_Tests();
WriteMakefile(NAME => 'LaTeXML',
lib/LaTeXML/Common/Config.pm view on Meta::CPAN
}
return ($rep_spec, $keyvals);
}
# TODO: Separate the keyvals scan from getopt_specification()
# into its own sub, using @GETOPT_KEYS entirely.
our @GETOPT_KEYS = keys %{ (getopt_specification())[0] };
sub read {
my ($self, $argref, %read_options) = @_;
my $opts = $$self{opts};
local @ARGV = @$argref;
my ($spec) = getopt_specification(options => $opts);
my $silent = %read_options && $read_options{silent};
my $getOptions_success = GetOptions(%{$spec});
if (!$getOptions_success && !$silent) {
pod2usage(-message => $LaTeXML::IDENTITY, -exitval => 1, -verbose => 99,
-input => pod_where({ -inc => 1 }, __PACKAGE__),
-sections => 'OPTION SYNOPSIS', -output => \*STDERR);
}
if (!$silent && $$opts{help}) {
pod2usage(-message => $LaTeXML::IDENTITY, -exitval => 0, -verbose => 99,
lib/LaTeXML/Common/Config.pm view on Meta::CPAN
next if (!length($value)) && (grep { /^$key\=/ } @GETOPT_KEYS);
$key = "--$key" unless $key =~ /^\-\-/;
$value = length($value) ? "=$value" : '';
CORE::push @$cmdopts, "$key$value";
}
# Read into a Config object:
return $self->read($cmdopts, %read_options); }
sub scan_to_keyvals {
my ($self, $argref, %read_options) = @_;
local @ARGV = @$argref;
my ($spec, $keyvals) = getopt_specification(type => 'keyvals');
my $silent = %read_options && $read_options{silent};
my $getOptions_success = GetOptions(%$spec);
if (!$getOptions_success && !$silent) {
pod2usage(-message => $LaTeXML::IDENTITY, -exitval => 1, -verbose => 99,
-input => pod_where({ -inc => 1 }, __PACKAGE__),
-sections => 'OPTION SYNOPSIS', -output => \*STDERR);
}
CORE::push @$keyvals, ['source', $ARGV[0]] if $ARGV[0];
return $getOptions_success && $keyvals;
( run in 0.566 second using v1.01-cache-2.11-cpan-49f99fa48dc )