[BACK]Return to hyphen-deinstall.tmpl CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / print / tex-tetex / files

File: [cvs.NetBSD.org] / pkgsrc / print / tex-tetex / files / Attic / hyphen-deinstall.tmpl (download)

Revision 1.1, Fri Nov 15 06:08:51 2013 UTC (9 years, 2 months ago) by minskim
Branch: MAIN
CVS Tags: pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4

Move files required to generate TeX hyphenation patterns from
texlive-tetex to tex-tetex. print/texlive-tetex will be removed in
TeX Live 2013.

# $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