summaryrefslogtreecommitdiff
path: root/libre/texlive-core/texlive.install
diff options
context:
space:
mode:
Diffstat (limited to 'libre/texlive-core/texlive.install')
-rw-r--r--libre/texlive-core/texlive.install12
1 files changed, 12 insertions, 0 deletions
diff --git a/libre/texlive-core/texlive.install b/libre/texlive-core/texlive.install
index 77d4213be..3b5e32a57 100644
--- a/libre/texlive-core/texlive.install
+++ b/libre/texlive-core/texlive.install
@@ -16,6 +16,12 @@ post_install() {
[ -f "$UPDMAPLOCAL" ] && cat "$UPDMAPLOCAL" >> $UPDMAP
echo ">>> texlive: updating the filename database..."
usr/bin/mktexlsr
+ (cd etc/texmf && ../../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
+ grep -F '["root"]="."' "$item" >/dev/null && rm -vf "$item" "${item%.lua}.luc"
+ done
echo ">>> texlive: updating the fontmap files with updmap..."
usr/bin/updmap-sys --quiet --nohash
echo " done."
@@ -38,6 +44,12 @@ post_upgrade() {
[ -f "$UPDMAPLOCAL" ] && cat "$UPDMAPLOCAL" >> $UPDMAP
echo ">>> texlive: updating the filename database..."
usr/bin/mktexlsr
+ (cd usr/share/texmf-dist && ../../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
+ grep -F '["root"]="."' "$item" >/dev/null && rm -vf "$item" "${item%.lua}.luc"
+ done
echo ">>> texlive: updating the fontmap files with updmap..."
usr/bin/updmap-sys --quiet --nohash $SYNCWITHTREES
echo " done."