PKGBUILDs/extra/texlive-bin/mktexlsr.script

13 lines
344 B
Text
Raw Normal View History

2016-08-05 13:02:06 +00:00
#!/bin/bash
/usr/bin/mktexlsr
(cd /etc/texmf && /usr/bin/mtxrun --generate >/dev/null)
# We need to remove directory "." from luatex cache to avoid absurd
# behaviour.
for item in /var/lib/texmf/luatex-cache/context/*/trees/*.lua; do
if grep -F '["root"]="."' "$item" >/dev/null; then
2016-08-06 19:24:55 +00:00
rm -f "$item" "${item%.lua}.luc"
2016-08-05 13:02:06 +00:00
fi
done