archrelease: copy trunk to extra-x86_64
[arch-packages.git] / texlive-core / trunk / texlive-fmtutil.script
blob0e3b94393dd52b8033e7b5a504bb6eb4b493aba8
1 #!/bin/bash
3 FMTUTIL="etc/texmf/web2c/fmtutil.cnf"
4 FMTUTILLOCAL="etc/texmf/web2c/fmtutil-local.cnf"
6 cp usr/share/texmf-dist/web2c/fmtutil-hdr.cnf $FMTUTIL
7 for file in var/lib/texmf/arch/installedpkgs/*.fmts; do
8 echo >> $FMTUTIL
9 echo "# $file" >> $FMTUTIL
10 cat $file >> $FMTUTIL
11 done
12 if [[ -f "$FMTUTILLOCAL" ]]; then
13 echo >> $FMTUTIL
14 echo "# $FMTUTILLOCAL" >> $FMTUTIL
15 cat "$FMTUTILLOCAL" >> $FMTUTIL
18 /usr/bin/fmtutil-sys --all --cnffile $FMTUTIL > /dev/null