From 8c714e8ff9d61ab509a20af39929083877642efe Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 27 May 2020 02:43:58 +0000 Subject: 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 --- Master/texmf-dist/scripts/texlive/fmtutil.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3