pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/teTeX/files Avoid empty for loops in shell scrip...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/34abc1c0f6cd
branches:  trunk
changeset: 519809:34abc1c0f6cd
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Tue Oct 10 12:41:28 2006 +0000

description:
Avoid empty for loops in shell scripts .

for f in ; do .... ; done

fails with solaris /bin/sh.  This repairs installation for several
packages.

diffstat:

 print/teTeX/files/texmf.tmpl |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 3eb137436bf1 -r 34abc1c0f6cd print/teTeX/files/texmf.tmpl
--- a/print/teTeX/files/texmf.tmpl      Tue Oct 10 12:09:36 2006 +0000
+++ b/print/teTeX/files/texmf.tmpl      Tue Oct 10 12:41:28 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: texmf.tmpl,v 1.4 2005/11/17 00:42:14 minskim Exp $
+# $NetBSD: texmf.tmpl,v 1.5 2006/10/10 12:41:28 dmcmahill Exp $
 #
 # Rebuild the ls-R database.
 #
@@ -6,12 +6,14 @@
 case ${STAGE} in
 POST-INSTALL)
        @MKTEXLSR@ @TEXMFDIRS@
-       for map in @TEX_FONTMAPS@; do
+       tex_fontmaps="@TEX_FONTMAPS@"
+       for map in $tex_fontmaps ; do
                @UPDMAP_SYS@ --enable Map=${map}
        done
        ;;
 DEINSTALL)
-       for map in @TEX_FONTMAPS@; do
+       tex_fontmaps="@TEX_FONTMAPS@"
+       for map in $tex_fontmaps ; do
                @UPDMAP_SYS@ --disable ${map}
        done
        ;;



Home | Main Index | Thread Index | Old Index