pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/tools Avoid using a for loop (optimization) which a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2683ecc2e1ad
branches:  trunk
changeset: 492911:2683ecc2e1ad
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Apr 22 02:29:28 2005 +0000

description:
Avoid using a for loop (optimization) which also broke when using the
bootstrap bmake.

diffstat:

 mk/tools/replace.mk |  12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diffs (26 lines):

diff -r 85dd6ae878c4 -r 2683ecc2e1ad mk/tools/replace.mk
--- a/mk/tools/replace.mk       Fri Apr 22 02:20:22 2005 +0000
+++ b/mk/tools/replace.mk       Fri Apr 22 02:29:28 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.5 2005/04/16 05:16:29 jlam Exp $
+# $NetBSD: replace.mk,v 1.6 2005/04/22 02:29:28 jlam Exp $
 #
 # This Makefile fragment handles "replacements" of system-supplied tools
 # with pkgsrc versions.  The replacements are placed under ${TOOLS_DIR}
@@ -30,13 +30,9 @@
 # Continue to allow USE_GNU_TOOLS and USE_TBL until packages have been
 # taught to use the new syntax.
 #
-.for _t_ in ${USE_GNU_TOOLS}
-.  if "${_t_}" == "make"
-USE_TOOLS+=    gmake
-.  else
-USE_TOOLS+=    ${_t_}
-.  endif
-.endfor
+.if defined(USE_GNU_TOOLS) && !empty(USE_GNU_TOOLS)
+USE_TOOLS+=    ${USE_GNU_TOOLS:S/make/gmake/}
+.endif
 .if defined(USE_TBL) && !empty(USE_TBL:M[yY][eE][sS])
 USE_TOOLS+=    tbl
 .endif



Home | Main Index | Thread Index | Old Index