pkgsrc/print/tex-tetex/files/hyphen-deinstall.tmpl
minskim 4c5c062847 Move files required to generate TeX hyphenation patterns from
texlive-tetex to tex-tetex. print/texlive-tetex will be removed in
TeX Live 2013.
2013-11-15 06:08:51 +00:00

36 lines
1.2 KiB
Cheetah

# $NetBSD: hyphen-deinstall.tmpl,v 1.1 2013/11/15 06:08:51 minskim Exp $
#
# Deinstall hyphenation patterns.
#
LANGUAGE_DAT=${PKG_SYSCONFBASE}/texmf/tex/generic/config/language.dat
LANGUAGE_DEF=${PKG_SYSCONFBASE}/texmf/tex/generic/config/language.def
LANGUAGE_LUA=${PKG_SYSCONFBASE}/texmf/tex/generic/config/language.dat.lua
case ${STAGE} in
DEINSTALL)
${AWK} "\
BEGIN { do_print=1; } \
/^%%% BEGIN @PKGBASE@\$/ { do_print=0; } \
{ if (do_print) print \$0; } \
/^%%% END @PKGBASE@\$/ { do_print=1; }" ${LANGUAGE_DAT} > ${LANGUAGE_DAT}.tmp &&
${MV} ${LANGUAGE_DAT}.tmp ${LANGUAGE_DAT}
@FMTUTIL_SYS@ --byhyphen ${LANGUAGE_DAT}
${AWK} "\
BEGIN { do_print=1; } \
/^%%% BEGIN @PKGBASE@\$/ { do_print=0; } \
{ if (do_print) print \$0; } \
/^%%% END @PKGBASE@\$/ { do_print=1; }" ${LANGUAGE_DEF} > ${LANGUAGE_DEF}.tmp &&
${MV} ${LANGUAGE_DEF}.tmp ${LANGUAGE_DEF}
@FMTUTIL_SYS@ --byhyphen ${LANGUAGE_DEF}
${AWK} "\
BEGIN { do_print=1; } \
/^--- BEGIN @PKGBASE@\$/ { do_print=0; } \
{ if (do_print) print \$0; } \
/^--- END @PKGBASE@\$/ { do_print=1; }" ${LANGUAGE_LUA} > ${LANGUAGE_LUA}.tmp &&
${MV} ${LANGUAGE_LUA}.tmp ${LANGUAGE_LUA}
@FMTUTIL_SYS@ --byhyphen ${LANGUAGE_LUA}
;;
*)
;;
esac