summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2020-05-27 02:43:58 +0000
committerNorbert Preining <preining@logic.at>2020-05-27 02:43:58 +0000
commit8c714e8ff9d61ab509a20af39929083877642efe (patch)
treeb00a445d9c7a8eed319a91359aa524cdfb9b4212
parentdab63cc840e09bf7c1e7f3b28eabde1ac78d8a48 (diff)
fmtutil.pl: fix undefined vars in some border cases, better warnings
git-svn-id: svn://tug.org/texlive/trunk@55294 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/fmtutil.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/Master/texmf-dist/scripts/texlive/fmtutil.pl b/Master/texmf-dist/scripts/texlive/fmtutil.pl
index 76abdbad6c2..93a8e9e2e3b 100755
--- a/Master/texmf-dist/scripts/texlive/fmtutil.pl
+++ b/Master/texmf-dist/scripts/texlive/fmtutil.pl
@@ -440,7 +440,11 @@ sub callback_build_formats {
# unless we tried to rebuild only missing formats.
if ($what ne "missing") {
if ($err + $suc == 0) {
- print_info("did not find entry for $what=$whatarg, skipped\n");
+ if ($what eq "all") {
+ print_warning("You seem to have no formats defined in your fmtutil.cnf files!\n");
+ } else {
+ print_info("Did not find entry for $what=" . ($whatarg?$whatarg:"") . " skipped\n");
+ }
}
}
my $stdo = ($mktexfmtMode ? \*STDERR : \*STDOUT);