pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/tools Remove unnecessary .undef lines after .for lo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/21fb422dcd3a
branches:  trunk
changeset: 495484:21fb422dcd3a
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Jun 11 05:22:03 2005 +0000

description:
Remove unnecessary .undef lines after .for loops as the loop variables
are automatically undefined after the loop exits.

diffstat:

 mk/tools/autoconf.mk  |   5 +----
 mk/tools/automake.mk  |   4 +---
 mk/tools/bsd.tools.mk |   7 +------
 mk/tools/defaults.mk  |   4 +---
 mk/tools/replace.mk   |  10 +---------
 mk/tools/rpcgen.mk    |   3 +--
 6 files changed, 6 insertions(+), 27 deletions(-)

diffs (197 lines):

diff -r f02bfbd0b622 -r 21fb422dcd3a mk/tools/autoconf.mk
--- a/mk/tools/autoconf.mk      Sat Jun 11 04:26:17 2005 +0000
+++ b/mk/tools/autoconf.mk      Sat Jun 11 05:22:03 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: autoconf.mk,v 1.10 2005/06/01 20:08:01 jlam Exp $
+# $NetBSD: autoconf.mk,v 1.11 2005/06/11 05:22:03 jlam Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -84,7 +84,6 @@
 .for _t_ in ${_TOOLS_AC_NAMES}
 _TOOLS_AC_TYPE.${_t_}?=        TOOLS_GNU_MISSING
 .endfor _t_
-.undef _t_
 
 .if !defined(TOOLS_IGNORE.autoconf) && !empty(USE_TOOLS:Mautoconf)
 .  if !empty(PKGPATH:Mdevel/autoconf)
@@ -179,7 +178,6 @@
 ${_TOOLS_AC_TYPE.${_t_}}+=     ${_t_}
 .    endif
 .  endfor
-.  undef _t_
 .endif
 
 # LIBTOOL_M4_OVERRIDE lists the locations where the libtool.m4 symlink
@@ -209,4 +207,3 @@
                fi;                                                     \
        done
 .endfor
-.undef _pattern_
diff -r f02bfbd0b622 -r 21fb422dcd3a mk/tools/automake.mk
--- a/mk/tools/automake.mk      Sat Jun 11 04:26:17 2005 +0000
+++ b/mk/tools/automake.mk      Sat Jun 11 05:22:03 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: automake.mk,v 1.13 2005/06/01 20:08:01 jlam Exp $
+# $NetBSD: automake.mk,v 1.14 2005/06/11 05:22:03 jlam Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -102,7 +102,6 @@
 .for _t_ in ${_TOOLS_AM_NAMES}
 _TOOLS_AM_TYPE.${_t_}?=        TOOLS_GNU_MISSING
 .endfor
-.undef _t_
 
 .if !defined(TOOLS_IGNORE.automake) && !empty(USE_TOOLS:Mautomake)
 .  if !empty(PKGPATH:Mdevel/automake)
@@ -175,7 +174,6 @@
 ${_TOOLS_AM_TYPE.${_t_}}+=     ${_t_}
 .    endif
 .  endfor
-.  undef _t_
 .endif
 
 .if !empty(USE_TOOLS:Mgettext-m4)
diff -r f02bfbd0b622 -r 21fb422dcd3a mk/tools/bsd.tools.mk
--- a/mk/tools/bsd.tools.mk     Sat Jun 11 04:26:17 2005 +0000
+++ b/mk/tools/bsd.tools.mk     Sat Jun 11 05:22:03 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.tools.mk,v 1.28 2005/05/21 04:53:17 jlam Exp $
+# $NetBSD: bsd.tools.mk,v 1.29 2005/06/11 05:22:03 jlam Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -125,20 +125,17 @@
 TOOLS_CREATE+=                 ${_t_}
 TOOLS_REAL_CMDLINE.${_t_}?=    exit 0
 .endfor
-.undef _t_
 
 .for _t_ in ${TOOLS_BROKEN}
 TOOLS_CREATE+=                 ${_t_}
 TOOLS_REAL_CMDLINE.${_t_}?=    exit 1
 .endfor
-.undef _t_
 
 .for _t_ in ${TOOLS_GNU_MISSING}
 TOOLS_CREATE+=                 ${_t_}
 TOOLS_REAL_CMD.${_t_}?=                ${PKGSRCDIR}/mk/gnu-config/missing
 TOOLS_REAL_CMDLINE.${_t_}?=    ${TOOLS_REAL_CMD.${_t_}} ${_t_:T:C/-[0-9].*$//}
 .endfor
-.undef _t_
 
 ######################################################################
 
@@ -215,8 +212,6 @@
        ${TEST} ${.TARGET:Q} = ${.TARGET:H:Q}/${_a_} ||                 \
                ${LN} -fs ${.TARGET:T:Q} ${.TARGET:H:Q}/${_a_}
 .  endfor
-.  undef _a_
 .endfor
-.undef _t_
 
 .endif # BSD_TOOLS_MK
diff -r f02bfbd0b622 -r 21fb422dcd3a mk/tools/defaults.mk
--- a/mk/tools/defaults.mk      Sat Jun 11 04:26:17 2005 +0000
+++ b/mk/tools/defaults.mk      Sat Jun 11 05:22:03 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: defaults.mk,v 1.27 2005/06/10 20:53:54 jlam Exp $
+# $NetBSD: defaults.mk,v 1.28 2005/06/11 05:22:03 jlam Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -179,9 +179,7 @@
 .    for _v_ in ${_TOOLS_VARNAME.${_t_}}
 ${_v_}?=       ${TOOLS_PLATFORM.${_t_}}
 .    endfor
-.    undef _v_
 .  endif
 .endfor
-.undef _t_
 
 .endif # TOOLS_DEFAULTS_MK
diff -r f02bfbd0b622 -r 21fb422dcd3a mk/tools/replace.mk
--- a/mk/tools/replace.mk       Sat Jun 11 04:26:17 2005 +0000
+++ b/mk/tools/replace.mk       Sat Jun 11 05:22:03 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.99 2005/06/03 22:54:44 jlam Exp $
+# $NetBSD: replace.mk,v 1.100 2005/06/11 05:22:03 jlam Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -141,13 +141,11 @@
 .  endif
 _TOOLS_USE_PKGSRC.${_t_}?=     yes
 .endfor
-.undef _t_
 
 # TOOLS_DEPMETHOD.<tool> defaults to BUILD_DEPENDS.
 .for _t_ in ${_USE_TOOLS}
 TOOLS_DEPMETHOD.${_t_}?=       BUILD_DEPENDS
 .endfor
-.undef _t_
 
 ######################################################################
 
@@ -466,7 +464,6 @@
 .      for _dep_ in ${BUILDLINK_DEPENDS.flex}
 _TOOLS_DEPENDS.flex+=          ${_dep_}:${BUILDLINK_PKGSRCDIR.flex}
 .      endfor
-.      undef _dep_
 TOOLS_DEPENDS.flex?=           ${_TOOLS_DEPENDS.flex}
 TOOLS_CREATE+=                 flex
 TOOLS_FIND_PREFIX+=            TOOLS_PREFIX.flex=flex
@@ -666,7 +663,6 @@
 .      for _dep_ in ${BUILDLINK_DEPENDS.flex}
 _TOOLS_DEPENDS.lex+=           ${_dep_}:${BUILDLINK_PKGSRCDIR.flex}
 .      endfor
-.      undef _dep_
 TOOLS_DEPENDS.lex?=            ${_TOOLS_DEPENDS.lex}
 TOOLS_CREATE+=                 lex
 TOOLS_FIND_PREFIX+=            TOOLS_PREFIX.lex=flex
@@ -1168,7 +1164,6 @@
 ${TOOLS_DEPMETHOD.${_t_}}+=    ${_dep_}
 .      endif
 .    endfor
-.    undef _dep_
 .  endif
 .endfor
 
@@ -1190,7 +1185,6 @@
 .    endif
 .  endif
 .endfor
-.undef _t_
 
 ######################################################################
 
@@ -1234,11 +1228,9 @@
 .      for _v_ in ${_TOOLS_VARNAME.${_t_}}
 ${_v_}?=       ${TOOLS_${_TOOLS_VARNAME.${_t_}}}
 .      endfor
-.      undef _v_
 .    endif
 .  endif
 .endfor
-.undef _t_
 
 ######################################################################
 
diff -r f02bfbd0b622 -r 21fb422dcd3a mk/tools/rpcgen.mk
--- a/mk/tools/rpcgen.mk        Sat Jun 11 04:26:17 2005 +0000
+++ b/mk/tools/rpcgen.mk        Sat Jun 11 05:22:03 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rpcgen.mk,v 1.7 2005/05/21 04:53:17 jlam Exp $
+# $NetBSD: rpcgen.mk,v 1.8 2005/06/11 05:22:03 jlam Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -48,7 +48,6 @@
 TOOLS_REAL_CMD.rpcgen?=        ${_d_}/rpcgen
 .    endif
 .  endfor
-.  undef _d_
 TOOLS_REAL_CMD.rpcgen?=        ${FALSE}
 .endif
 TOOLS_CMD.rpcgen=      ${TOOLS_DIR}/bin/rpcgen



Home | Main Index | Thread Index | Old Index