[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

fmtutil: Why do we add redirections in patch-deb?



Hi all,

anybody here who remembers why we add a ">&2" at two places in
/usr/bin/fmtutil, using patch-deb? 

--- texk/tetex/fmtutil.orig	Fri Apr 23 16:17:24 2004
+++ texk/tetex/fmtutil	Fri Apr 23 16:17:24 2004
@@ -450,7 +450,7 @@
     test -f "$i" || continue
     rm -f "$destdir/$i"
     if mv "$i" "$destdir/$i"; then
-      verbose echo "$progname: $destdir/$i installed."
+      verbose echo "$progname: $destdir/$i installed." >&2
       $mktexfmtMode && echo "$destdir/$i"
     fi
     $MT_MKTEXUPD "$destdir" "$i"
@@ -586,7 +586,7 @@
   test -n "$pool" \
     && poolfile=`(kpsewhich -progname=$engine $pool.pool) 2>/dev/null`
   if test -n "$poolfile" && test -f "$poolfile"; then
-    verbose echo "$progname: attempting to create localized format using pool=$pool and tcx=$tcx."
+    verbose echo "$progname: attempting to create localized format using pool=$pool and tcx=$tcx." >&2
     cp "$poolfile" $engine.pool
     test -n "$tcx" && tcxflag=-translate-file=$tcx
     localpool=true

There are many more occurences of "verbose echo ...", and in the
original script it is echoed to stdout if called as fmtutil, but to
stderr if called as mktexfmt.

TIA, Frank

-- 
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie



Reply to: