Bug#64914: (no subject)
Here is the possible concrete code for update-fmtutil;
#!/bin/sh
# update-fmtutil
# License: GPL
TXMF=/etc/texmf
#TXMF=.
CNFFILES=`/bin/ls -1 $TXMF/fmt.d/*.cnf`
CNFDIR=$TXMF
if [ "x$1" = "x-v" ]; then
VERBOSE=true
fi
if [ "$VERBOSE" = "true" ]; then
if [ -f "$CNFDIR/fmtutil.cnf" ]; then
echo -n "Regenerating $CNFDIR/fmtutil.cnf ... " >&2
else
echo -n "Generating $CNFDIR/fmtutil.cnf ... " >&2
fi
fi
cat ${CNFFILES} > ${CNFDIR}/fmtutil.cnf_$$
mv ${CNFDIR}/fmtutil.cnf_$$ ${CNFDIR}/fmtutil.cnf
if [ "$VERBOSE" = "true" ]; then
echo "done"
fi
Note tetex-bin would provide /etc/texmf/fmt.d/00tetex.cnf
and, for example, jadetex would provide /etc/texmf/fmt.d/10jadetex.cnf
The numerics are for ordering and they will make generated
fmtutil.cnf readable, at least.
Further, jadetex should not ship out 10jadetex.cnf
as a real file (a conffile) but should generate it
with postinst and remove it with prerm.
If not, 10jadetex.cnf will remain after a user removes
jadetex and fmtutil.cnf will contain unnecessary entries.
Any comment is welcome.
Best regards, 2002.3.19
--
Debian Developer & Debian JP Developer - much more I18N of Debian
Atsuhito Kohda <kohda@debian.org>
Department of Math., Univ. of Tokushima
Reply to: