From 04f9b4803dff0ca3af98ee2ac1073b552de4a95f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 7 Jul 2009 00:03:01 +0000 Subject: i386-linux binaries update from karl git-svn-id: svn://tug.org/texlive/trunk@14164 c570f23f-e606-0410-a88d-b1316a301751 --- Master/bin/i386-linux/fmtutil | 53 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 49 insertions(+), 4 deletions(-) (limited to 'Master/bin/i386-linux/fmtutil') diff --git a/Master/bin/i386-linux/fmtutil b/Master/bin/i386-linux/fmtutil index a2d3808b988..2a76d08f558 100755 --- a/Master/bin/i386-linux/fmtutil +++ b/Master/bin/i386-linux/fmtutil @@ -84,8 +84,7 @@ test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"' progname=fmtutil argv0=$0 -version=1205513038 # seconds since `00:00:00 1970-01-01 UTC' - # date '+%s' (with GNU date) +version=20090611.2319 cnf=fmtutil.cnf # name of the config file export PATH @@ -259,6 +258,23 @@ verboseMsg() { ############################################################################### byebye() { + if $has_warnings; then + { + cat <&2 + fi + if $has_errors; then { cat <&2 @@ -280,6 +296,16 @@ eof fi } +############################################################################### +# init_log_warning() +# reset the list of warning messages +############################################################################### +init_log_warning() +{ + log_warning_msg= + has_warnings=false +} + ############################################################################### # init_log_failure() # reset the list of failure messages @@ -290,6 +316,24 @@ init_log_failure() has_errors=false } +############################################################################### +# log_warning(errmsg) +# report and save warning message `errmsg' +############################################################################### +log_warning() +{ + echo "Warning: $@" >&2 + if test -z "$log_warning_msg"; then + log_warning_msg="$@" + else + OLDIFS=$IFS; IFS= + log_warning_msg="$log_warning_msg +$@" + IFS=$OLDIFS + fi + has_warnings=true +} + ############################################################################### # log_failure(errmsg) # report and save failure message `errmsg' @@ -547,6 +591,7 @@ main() cache_vars init_log_failure + init_log_warning # execute the desired command: case "$cmd" in all) @@ -706,7 +751,7 @@ run_initex() mkdir -p "$fulldestdir" if test -f $fmtfile; then grep '^! ' $format.log >/dev/null 2>&1 && - log_failure "\`$engine -ini $tcxflag $jobswitch $prgswitch $texargs' possibly failed." + log_warning "\`$engine -ini $tcxflag $jobswitch $prgswitch $texargs' possibly failed." # We don't want user-interaction for the following "mv" commands: mv "$format.log" "$fulldestdir/$format.log"