[tex-live] Having a .fmt for different engines
Norbert Preining
preining at logic.at
Fri Jan 5 10:08:04 CET 2007
Hi all!
On Fre, 05 Jan 2007, Hans Hagen wrote:
> now, norbert and friends made it works and tested it quite extensively
> too; so that proves it can be done after all; it's called progress
This is a stupid script and has nothing of the intellignece of fmtutil
> >Anyway, we are not going to radically revamp fmtutil a couple weeks
> >before the release, that's absurd. I can't even think about it now. If
> >someone can send me a patch of a few lines that improves the situation,
> >I will consider that. If it's complicated, it'll have to wait. Sorry.
Hold on, What about this: It is short and trivial, maybe Thomas can
remark on it. The idea:
- put ALL formats in the engine subdirs
- in the recreate loop do
at the beginning: mkdir $engine; cd $engine
at the end: cd ..
- in the install log/fmt/etc stuff
for i in */*.fmt
etc
I tested it, all my formats were recreated and found.
--- /usr/bin/fmtutil.save 2007-01-05 10:01:50.000000000 +0100
+++ /usr/bin/fmtutil 2007-01-05 10:01:56.000000000 +0100
@@ -598,16 +598,21 @@
esac
# install the log files and format files:
- for i in *.log; do
+ for i in */*.log; do
+ bn=`basename $i`
+ dn=`dirname $i`
test -f "$i" || continue
rm -f "$destdir/$i"
# We don't want user-interaction for the following "mv" command:
+ mkdir -p "$destdir/$dn"
mv "$i" "$destdir/$i" </dev/null
done
- for i in *.fmt *.mem *.base; do
+ for i in */*.fmt */*.mem */*.base; do
test -f "$i" || continue
rm -f "$destdir/$i"
+ dn=`dirname $i`
+ mkdir -p "$destdir/$dn"
# We don't want user-interaction for the following "mv" command:
if mv "$i" "$destdir/$i" </dev/null; then
@@ -713,6 +718,8 @@
{
# install a pool file and set tcx flag if requested in lang= option:
+ mkdir -p $engine
+ cd $engine
rm -f *.pool
poolfile=
tcxflag=
@@ -750,6 +757,7 @@
else
log_failure "\`$engine -ini $tcxflag $jobswitch $prgswitch $texargs' failed"
fi
+ cd ..
}
###############################################################################
>
> Hans
Herzliche Grüße
Best wishes
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining <preining at logic.at> Università di Siena
Debian Developer <preining at debian.org> Debian TeX Group
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
BRYMBO
The single unappetising bun left in a baker's shop after four p.m.
--- Douglas Adams, The Meaning of Liff
More information about the tex-live
mailing list