diff options
Diffstat (limited to 'print/texlive-tetex/files/hyphen-install.tmpl')
-rw-r--r-- | print/texlive-tetex/files/hyphen-install.tmpl | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/print/texlive-tetex/files/hyphen-install.tmpl b/print/texlive-tetex/files/hyphen-install.tmpl index 7dc873be725..611680d0f65 100644 --- a/print/texlive-tetex/files/hyphen-install.tmpl +++ b/print/texlive-tetex/files/hyphen-install.tmpl @@ -1,10 +1,11 @@ -# $NetBSD: hyphen-install.tmpl,v 1.1 2009/03/06 18:13:00 minskim Exp $ +# $NetBSD: hyphen-install.tmpl,v 1.2 2010/11/07 17:22:24 minskim Exp $ # # Install 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 POST-INSTALL) @@ -37,6 +38,21 @@ BEGIN { f=\"${LANGUAGE_DEF}.tmp\"; } \ ${RM} ${LANGUAGE_DEF}.post ${MV} ${LANGUAGE_DEF}.tmp ${LANGUAGE_DEF} @FMTUTIL_SYS@ --byhyphen ${LANGUAGE_DEF} + hyphen_lua="@HYPHEN_LUA@" + ${AWK} "\ +BEGIN { f=\"${LANGUAGE_LUA}.tmp\"; } \ +/^-- END of language/ { f=\"${LANGUAGE_LUA}.post\"; } \ +{ print>f; }" ${LANGUAGE_LUA} && + set -- dummy $hyphen_lua; shift; + ${ECHO} "--- BEGIN @PKGBASE@" >> ${LANGUAGE_LUA}.tmp + for line in $hyphen_lua ; do + echo "\t${line}" >> ${LANGUAGE_LUA}.tmp + done + ${ECHO} "--- END @PKGBASE@" >> ${LANGUAGE_LUA}.tmp + ${CAT} ${LANGUAGE_LUA}.post >> ${LANGUAGE_LUA}.tmp + ${RM} ${LANGUAGE_LUA}.post + ${MV} ${LANGUAGE_LUA}.tmp ${LANGUAGE_LUA} + @FMTUTIL_SYS@ --byhyphen ${LANGUAGE_LUA} ;; *) ;; |