diff options
Diffstat (limited to 'print/latex-auto-greek/pkg-deinstall')
-rw-r--r-- | print/latex-auto-greek/pkg-deinstall | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/print/latex-auto-greek/pkg-deinstall b/print/latex-auto-greek/pkg-deinstall new file mode 100644 index 000000000000..106ee279f176 --- /dev/null +++ b/print/latex-auto-greek/pkg-deinstall @@ -0,0 +1,15 @@ +#!/bin/sh + +prefix=/usr/local +sharedir=${prefix}/share +if [ -f ${sharedir}/texmf-dist/tex/latex/auto-greek/updmap.inc ]; then + grep -vf ${sharedir}/texmf-dist/tex/latex/auto-greek/updmap.inc ${sharedir}/texmf-config/web2c/updmap.cfg > ${sharedir}/texmf-config/web2c/updmap.cfg.swp + mv ${sharedir}/texmf-config/web2c/updmap.cfg.swp ${sharedir}/texmf-config/web2c/updmap.cfg + chmod 0444 ${sharedir}/texmf-config/web2c/updmap.cfg + mv ${sharedir}/texmf-dist/tex/generic/hyphen/hyphen.tex.old ${sharedir}/texmf-dist/tex/generic/hyphen/hyphen.tex + + ${prefix}/bin/texhash + ${prefix}/bin/updmap-sys + ${prefix}/bin/fmtutil-sys --byfmt latex + ${prefix}/bin/fmtutil-sys --byfmt pdflatex +fi; |