diff options
author | minskim <minskim> | 2010-01-29 19:59:47 +0000 |
---|---|---|
committer | minskim <minskim> | 2010-01-29 19:59:47 +0000 |
commit | 689c0bac245bc46b5474659cd842b370aa38b012 (patch) | |
tree | 61533eaa1bd654c480d15aeebf7d6a6679227317 /print/texlive-tetex | |
parent | ef66522a21b8420b27a9fb9887d856706c188b2d (diff) | |
download | pkgsrc-689c0bac245bc46b5474659cd842b370aa38b012.tar.gz |
Allow generating multiple TeX formats in a single package.
Diffstat (limited to 'print/texlive-tetex')
-rw-r--r-- | print/texlive-tetex/files/format-deinstall.tmpl | 4 | ||||
-rw-r--r-- | print/texlive-tetex/files/format-install.tmpl | 6 | ||||
-rw-r--r-- | print/texlive-tetex/format.mk | 3 |
3 files changed, 7 insertions, 6 deletions
diff --git a/print/texlive-tetex/files/format-deinstall.tmpl b/print/texlive-tetex/files/format-deinstall.tmpl index 5fc6f6079fd..99d63b359fd 100644 --- a/print/texlive-tetex/files/format-deinstall.tmpl +++ b/print/texlive-tetex/files/format-deinstall.tmpl @@ -1,4 +1,4 @@ -# $NetBSD: format-deinstall.tmpl,v 1.5 2010/01/29 04:12:41 minskim Exp $ +# $NetBSD: format-deinstall.tmpl,v 1.6 2010/01/29 19:59:47 minskim Exp $ # # Delete format files. # @@ -9,7 +9,7 @@ case ${STAGE} in DEINSTALL) formats=@FORMATS@ if [ "$formats" != "" ]; then - ${ECHO} $formats | + @PRINTF@ "$formats" | while read format engine junk; do ${GREP} -v "^${format}[[:space:]][[:space:]]*${engine}[[:space:]]" ${FMTUTIL_CNF} > \ ${FMTUTIL_CNF}.tmp && diff --git a/print/texlive-tetex/files/format-install.tmpl b/print/texlive-tetex/files/format-install.tmpl index 371df35fccb..9a6ac5c122d 100644 --- a/print/texlive-tetex/files/format-install.tmpl +++ b/print/texlive-tetex/files/format-install.tmpl @@ -1,4 +1,4 @@ -# $NetBSD: format-install.tmpl,v 1.3 2010/01/29 04:12:41 minskim Exp $ +# $NetBSD: format-install.tmpl,v 1.4 2010/01/29 19:59:47 minskim Exp $ # # Create format files. # @@ -9,8 +9,8 @@ case ${STAGE} in POST-INSTALL) formats=@FORMATS@ if [ "$formats" != "" ]; then - ${ECHO} $formats >> ${FMTUTIL_CNF} - ${ECHO} $formats | + @PRINTF@ "$formats" >> ${FMTUTIL_CNF} + @PRINTF@ "$formats" | while read format engine junk; do @FMTUTIL_SYS@ --byfmt $format done diff --git a/print/texlive-tetex/format.mk b/print/texlive-tetex/format.mk index 01d70a6e5b8..5c0587b74b9 100644 --- a/print/texlive-tetex/format.mk +++ b/print/texlive-tetex/format.mk @@ -1,4 +1,4 @@ -# $NetBSD: format.mk,v 1.4 2010/01/29 04:12:41 minskim Exp $ +# $NetBSD: format.mk,v 1.5 2010/01/29 19:59:47 minskim Exp $ # # This Makefile fragment is intended to be included by packages that # install TeX format files. It creates format files at @@ -20,6 +20,7 @@ EVAL_PREFIX+= TETEX_PREFIX=texlive-tetex FILES_SUBST+= FMTUTIL_SYS=${TETEX_PREFIX:Q}/bin/fmtutil-sys FILES_SUBST+= FORMAT_NAMES=${TEX_FORMAT_NAMES:Q} FILES_SUBST+= FORMATS=${TEX_FORMATS:Q} +FILES_SUBST+= PRINTF=${PRINTF:Q} INSTALL_TEMPLATES+= ../../print/texlive-tetex/files/format-install.tmpl DEINSTALL_TEMPLATES+= ../../print/texlive-tetex/files/format-deinstall.tmpl |