summaryrefslogtreecommitdiff
path: root/libre/texlive-bin/mktexlsr.script
blob: e0c98f349c9d83171698a54ae6043b96c72242f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

/usr/bin/mktexlsr
echo ">>> Updating LuaTeX filename database..."
(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
        rm -vf "$item" "${item%.lua}.luc"
    fi
done