summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tl-check-fmtshare
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-01-10 18:36:08 +0000
committerKarl Berry <karl@freefriends.org>2022-01-10 18:36:08 +0000
commitfab27e1b949bb2078b26cb126c6354388070ae45 (patch)
tree782bac2b795780792e1d971d18ff5fc1e444ccaf /Master/tlpkg/bin/tl-check-fmtshare
parent25b019921846bbc5bf19fe75c99482331e17bdf1 (diff)
output settings up front, version info per engine.
git-svn-id: svn://tug.org/texlive/trunk@61558 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/tl-check-fmtshare')
-rwxr-xr-xMaster/tlpkg/bin/tl-check-fmtshare21
1 files changed, 18 insertions, 3 deletions
diff --git a/Master/tlpkg/bin/tl-check-fmtshare b/Master/tlpkg/bin/tl-check-fmtshare
index e8e9297b375..a93883c680c 100755
--- a/Master/tlpkg/bin/tl-check-fmtshare
+++ b/Master/tlpkg/bin/tl-check-fmtshare
@@ -1,6 +1,11 @@
#!/bin/sh
# Public domain. Originally written by Karl Berry, 2021.
# Test that a .fmt file built on one system can be used on another.
+#
+# Invoked from karl's cron.weekly:
+# tl-check-fmtshare m68:tl/Work/texk/web2c
+# where m68 is a host alias for one of Nelson's machines,
+# a 32-bit BigEndian m68k architecture.
version='$Id$'
renice 20 $$ >/dev/null 2>&1
@@ -132,6 +137,15 @@ test -d "$outdir" || mkdir "$outdir" || exit 1
# default fmt list.
test -z "$fmts" && fmts=$default_fmts
+prg=`basename $0`
+echo "$prg: PATH=$PATH"
+echo "$prg: support files directory: $Master"
+echo "$prg: local engine directory: $enginedir"
+echo "$prg: local output directory: $outdir"
+echo "$prg: formats to build:"$fmts
+echo "$prg: remote: $remotesys:$remotedir"
+
+#
# Our function to create a format locally:
# mkfmt FMT ENGINEDIR MASTERDIR OUTDIR
# Generates FMT using the binary from ENGINEDIR,
@@ -242,7 +256,8 @@ for fmt in $fmts; do
fi
#echo "$0: (`date`)"
echo "$0: built fmtfile: `ls -l $fmtfile`"
- echo "$0: with: $enginedir/$engine"
+ engineversion=`$enginedir/$engine --version | sed 1q`
+ echo "$0: with engine: $enginedir/$engine ($engineversion)"
# The TeX \command to exit a job immediately. Assume a LaTeX fmt
# if "latex" is in the name, else plain (enough).
@@ -257,7 +272,7 @@ for fmt in $fmts; do
scp -pq "$fmtfile" "$remotesys:$remotedir" || exit 1
# load on remote machine.
- echo "$0: running $engine in $remotesys:$remotedir..."
+ echo "$0: running ./$engine in $remotesys:$remotedir..."
#
# On the remote side, we need to find a texmf.cnf or pdftex gets the
# mysterious "Must increase the hyph_size"; assume the
@@ -273,7 +288,7 @@ for fmt in $fmts; do
ssh -n $remotesys "$remotecmd" </dev/null >>$rfot 2>&1
if test $? -ne 0; then
echo "$0: *** fmt load failed on $remotesys: $fmt" >&2
- echo "$0: *** see transcript: $rfot" >&2
+ echo "$0: *** transcript in: $rfot" >&2
cat $rfot >&2
exit 1
else