2013-11-15 07:08:51 +01:00
|
|
|
# $NetBSD: hyphen-deinstall.tmpl,v 1.1 2013/11/15 06:08:51 minskim Exp $
|
2009-03-06 19:12:59 +01:00
|
|
|
#
|
|
|
|
# Deinstall hyphenation patterns.
|
|
|
|
#
|
|
|
|
|
|
|
|
LANGUAGE_DAT=${PKG_SYSCONFBASE}/texmf/tex/generic/config/language.dat
|
|
|
|
LANGUAGE_DEF=${PKG_SYSCONFBASE}/texmf/tex/generic/config/language.def
|
2010-11-07 18:22:24 +01:00
|
|
|
LANGUAGE_LUA=${PKG_SYSCONFBASE}/texmf/tex/generic/config/language.dat.lua
|
2009-03-06 19:12:59 +01:00
|
|
|
|
|
|
|
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}
|
2009-04-15 07:01:28 +02:00
|
|
|
@FMTUTIL_SYS@ --byhyphen ${LANGUAGE_DAT}
|
2009-03-06 19:12:59 +01:00
|
|
|
${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}
|
2009-04-15 07:01:28 +02:00
|
|
|
@FMTUTIL_SYS@ --byhyphen ${LANGUAGE_DEF}
|
2010-11-07 18:22:24 +01:00
|
|
|
${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}
|
2009-03-06 19:12:59 +01:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|