summaryrefslogtreecommitdiff
path: root/Master/bin/powerpc-darwin/fmtutil
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-01-13 23:00:58 +0000
committerKarl Berry <karl@freefriends.org>2007-01-13 23:00:58 +0000
commit53a26794bcb05cffe6c83f21c3413d62c41f6c4a (patch)
tree761480a82d7795603ae5dfd26fbf1bdeea5d581c /Master/bin/powerpc-darwin/fmtutil
parent96a50743d7b2038d34f40dac004000f0cde9be93 (diff)
echo only one line of output
git-svn-id: svn://tug.org/texlive/trunk@3437 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/powerpc-darwin/fmtutil')
-rwxr-xr-xMaster/bin/powerpc-darwin/fmtutil12
1 files changed, 8 insertions, 4 deletions
diff --git a/Master/bin/powerpc-darwin/fmtutil b/Master/bin/powerpc-darwin/fmtutil
index 9342c679aaf..ae04f067201 100755
--- a/Master/bin/powerpc-darwin/fmtutil
+++ b/Master/bin/powerpc-darwin/fmtutil
@@ -83,7 +83,7 @@ test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
progname=fmtutil
argv0=$0
-version=1112981053 # seconds since `00:00:00 1970-01-01 UTC'
+version=1168729197 # seconds since `00:00:00 1970-01-01 UTC'
# date '+%s' (with GNU date)
cnf=fmtutil.cnf # name of the config file
@@ -362,8 +362,9 @@ main()
tmpdir=${TMPDIR-${TEMP-${TMP-/tmp}}}/$progname.$$
verboseFlag=true
- # mktexfmtMode: if called as mktexfmt, set to true. Will echo the generated
- # filename after successful generation to stdout then (and nothing else).
+ # mktexfmtMode: if called as mktexfmt, set to true. Will echo the
+ # first generated filename after successful generation to stdout then
+ # (and nothing else), since kpathsea can only deal with one.
mktexfmtMode=false
case $argv0 in
mktexfmt|*/mktexfmt)
@@ -699,7 +700,10 @@ run_initex()
mv "$format.log" "$fulldestdir/$format.log" </dev/null
if mv "$fmtfile" "$fulldestdir/$fmtfile" </dev/null; then
verboseMsg "$progname: $fulldestdir/$fmtfile installed."
- $mktexfmtMode && echo "$fulldestdir/$fmtfile"
+ #
+ $mktexfmtMode && $mktexfmtFirst \
+ && echo "$fulldestdir/$fmtfile" && mktexfmtFirst=false
+ #
mktexupd "$fulldestdir" "$fmtfile"
fi
else