pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Use an ODE variable loop instead of a make .for loo...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2e0d7243bc4c
branches: trunk
changeset: 516411:2e0d7243bc4c
user: jlam <jlam%pkgsrc.org@localhost>
date: Thu Jul 20 17:40:45 2006 +0000
description:
Use an ODE variable loop instead of a make .for loop to output the list
of "TOOL" variables defined by the tools framework.
diffstat:
mk/bsd.pkg.debug.mk | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (27 lines):
diff -r 3d5836864001 -r 2e0d7243bc4c mk/bsd.pkg.debug.mk
--- a/mk/bsd.pkg.debug.mk Thu Jul 20 17:31:20 2006 +0000
+++ b/mk/bsd.pkg.debug.mk Thu Jul 20 17:40:45 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.debug.mk,v 1.3 2006/07/20 17:31:20 rillig Exp $
+# $NetBSD: bsd.pkg.debug.mk,v 1.4 2006/07/20 17:40:45 jlam Exp $
#
# The `debug' target outputs the values of some commonly used variables
@@ -44,13 +44,12 @@
esac; \
done
+# Use an ODE variable loop to output the "TOOL" name and value for each
+# unique tool listed in USE_TOOLS.
+#
_show-dbginfo-tools:
@${PRINTF} "TOOLS:\\n"
-.for _t_ in ${USE_TOOLS:O}
-. if defined(_TOOLS_VARNAME.${_t_})
- @${PRINTF} "\\t%s=%s\\n" ${_TOOLS_VARNAME.${_t_}:Q} ${${_TOOLS_VARNAME.${_t_}}:Q}
-. endif
-.endfor
+ @${USE_TOOLS:C/:.*//:O:u:@_t_@${_TOOLS_VARNAME.${_t_}:D${PRINTF} "\\t%s=%s\\n" ${_TOOLS_VARNAME.${_t_}} ${${_TOOLS_VARNAME.${_t_}}:Q};}@}
_show-dbginfo-configure:
@${PRINTF} "CONFIGURE_DIRS:\\n"
Home |
Main Index |
Thread Index |
Old Index