mktexlsr.script 344 B

12345678910111213
  1. #!/bin/bash
  2. /usr/bin/mktexlsr
  3. (cd /etc/texmf && /usr/bin/mtxrun --generate >/dev/null)
  4. # We need to remove directory "." from luatex cache to avoid absurd
  5. # behaviour.
  6. for item in /var/lib/texmf/luatex-cache/context/*/trees/*.lua; do
  7. if grep -F '["root"]="."' "$item" >/dev/null; then
  8. rm -f "$item" "${item%.lua}.luc"
  9. fi
  10. done