Initial attempt to remove the fmtutil.cnf scriptlets

This contains the basic work to remove the scriptlets which modify
fmtutil.cnf from the package.

This takes the fmtutil.cnf file from the distribution and splits it into
individual files. Those files are added to the relevant packages. A
small script is installed which puts together the individual files into
one fmtutil.cnf file. Two file trigger scriptlets call that when
necessary.

Most of the diff is renumbering 350+ source files to make room for
one at the beginning of the list.
This commit is contained in:
Jason Tibbitts 2018-06-21 18:46:33 -05:00
parent 20271cbf75
commit 2225dd4c4b
2 changed files with 447 additions and 819 deletions

22
generate-fmtutilcnf Executable file
View File

@ -0,0 +1,22 @@
#!/bin/bash
# Regenerate the fmtutil.cnf file from the pieces which are currently present
# in the fmtutil.cnf.d directory.
# Abort immediately if any command fails
set -o errexit
shopt -s nullglob
texdir=$1
[[ -z $texdir ]] && texdir=/usr/share/texlive
web2cdir=$texdir/texmf-dist/web2c
rm -f $web2cdir/fmtutil.cnf.rpmtmp
echo "# Generated by $0 on $(date)" > $web2cdir/fmtutil.cnf.rpmtmp
cat $web2cdir/fmtutil-hdr.cnf \
$(ls $texdir/fmtutil.cnf.d/*) \
>> $web2cdir/fmtutil.cnf.rpmtmp
mv $web2cdir/fmtutil.cnf.rpmtmp $web2cdir/fmtutil.cnf

File diff suppressed because it is too large Load Diff