From 388beecbb45b370adf62c66b34ad2b60e764e1a2 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 30 Jun 2016 18:16:10 +0000 Subject: (u)ptex: minimize dependencies to just the engine; check-fmttriggers: new option --fmtargs git-svn-id: svn://tug.org/texlive/trunk@41579 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/bin/check-fmttriggers | 26 +++++++++++++++++--------- Master/tlpkg/tlpsrc/ptex.tlpsrc | 10 +--------- Master/tlpkg/tlpsrc/uptex.tlpsrc | 8 -------- 3 files changed, 18 insertions(+), 26 deletions(-) (limited to 'Master') diff --git a/Master/tlpkg/bin/check-fmttriggers b/Master/tlpkg/bin/check-fmttriggers index a696789d07d..ba1447c9f91 100755 --- a/Master/tlpkg/bin/check-fmttriggers +++ b/Master/tlpkg/bin/check-fmttriggers @@ -8,10 +8,10 @@ # then check that exactly those packages are listed as triggers in the # corresponding tlpsrc files. -my ($vc_id, $Master); +my $vc_id = '$Id$'; +my $Master; BEGIN { - $vc_id = '$Id$'; $^W = 1; (my $mydir = $0) =~ s,/[^/]*$,,; my $tlroot = "$mydir/../.."; @@ -28,6 +28,7 @@ use TeXLive::TLUtils qw(info debug ddebug debug_hash tlwarn tldie); my $prg = TeXLive::TLUtils::basename($0); +my $opt_fmtargs = "--all"; my $opt_fmtdir = "/tmp/fmttriggers"; my $opt_rerecord = 1; my $opt_help = 0; @@ -35,6 +36,7 @@ my $opt_version = 0; TeXLive::TLUtils::process_logging_options (); GetOptions ( + "fmtargs=s" => \$opt_fmtargs, "fmtdir" => \$opt_fmtdir, "rerecord!" => \$opt_rerecord, "version" => \$opt_version, @@ -90,10 +92,8 @@ sub run_fmtutil { # the output from fmtutil can be useful in debugging. my $logfile = "$outdir/fmtutil.log"; - my $which = "--all"; - #$which = "--byengine=tex"; - my $cmd = "fmtutil --sys --recorder --strict --fmtdir=$outdir $which " - . ">$logfile 2>&1"; + my $cmd = "fmtutil --sys --recorder --strict --fmtdir=$outdir " + . "$opt_fmtargs >$logfile 2>&1"; &info ("Running $cmd\n"); my $retval = system ($cmd); $retval >>= 8 if $retval > 0; @@ -343,16 +343,22 @@ __END__ =head1 NAME -check-fmt-triggers - check that all needed packages trigger format rebuilds +check-fmttriggers - check that all needed packages trigger format rebuilds =head1 SYNOPSIS -check-fmt-trigger [I