texlive-fmtutil.script 488 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. FMTUTIL="etc/texmf/web2c/fmtutil.cnf"
  3. FMTUTILLOCAL="etc/texmf/web2c/fmtutil-local.cnf"
  4. cp usr/share/texmf-dist/web2c/fmtutil-hdr.cnf $FMTUTIL
  5. for file in var/lib/texmf/arch/installedpkgs/*.fmts; do
  6. echo >> $FMTUTIL
  7. echo "# $file" >> $FMTUTIL
  8. cat $file >> $FMTUTIL
  9. done
  10. if [[ -f "$FMTUTILLOCAL" ]]; then
  11. echo >> $FMTUTIL
  12. echo "# $FMTUTILLOCAL" >> $FMTUTIL
  13. cat "$FMTUTILLOCAL" >> $FMTUTIL
  14. fi
  15. /usr/bin/fmtutil-sys --all --cnffile $FMTUTIL > /dev/null