summaryrefslogtreecommitdiff
path: root/libre/texlive-bin/texlive-fmtutil.script
blob: 0e3b94393dd52b8033e7b5a504bb6eb4b493aba8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

FMTUTIL="etc/texmf/web2c/fmtutil.cnf"
FMTUTILLOCAL="etc/texmf/web2c/fmtutil-local.cnf"

cp usr/share/texmf-dist/web2c/fmtutil-hdr.cnf $FMTUTIL
for file in var/lib/texmf/arch/installedpkgs/*.fmts; do
    echo >> $FMTUTIL
    echo "# $file" >> $FMTUTIL
    cat $file >> $FMTUTIL
done
if [[ -f "$FMTUTILLOCAL" ]]; then
    echo >> $FMTUTIL
    echo "# $FMTUTILLOCAL" >> $FMTUTIL
    cat "$FMTUTILLOCAL" >> $FMTUTIL
fi

/usr/bin/fmtutil-sys --all --cnffile $FMTUTIL > /dev/null