pkgsrc/print/tex-hugelatex/DEINSTALL
joerg 231a63bd02 Don't build hugelatex configuration at do-install time, but in the
INSTALL script. Use magic markers and remove the texmf.cnf fragment
at DEINSTALL time. This fixes the deinstallation when other packages
modify it and are installed afterwards, but removed out-of-order.
Bump revision.

Addresses PR 32376 and PR 34003 (the latter indirectly from myself).
2006-10-12 13:38:35 +00:00

16 lines
450 B
Text

# $NetBSD: DEINSTALL,v 1.1 2006/10/12 13:38:35 joerg Exp $
TEXMF_CNF=@PKG_TEXMFPREFIX@/web2c/texmf.cnf
case ${STAGE} in
DEINSTALL)
${AWK} '\
BEGIN { do_print=1; } \
/^%%% BEGIN hugelatex$/ { do_print=0; } \
{ if (do_print) print $0; } \
/^%%% END hugelatex$/ { do_print=1; }' ${TEXMF_CNF} > ${TEXMF_CNF}.tmp &&
${MV} ${TEXMF_CNF}.tmp ${TEXMF_CNF}
${RM} @PKG_TEXMFPREFIX@/web2c/hugelatex.fmt
${RM} @PKG_TEXMFPREFIX@/web2c/hugelatex.log
;;
esac