pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Added the show-tools target, which emits a shell co...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0be86dc4eb93
branches:  trunk
changeset: 493988:0be86dc4eb93
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed May 18 02:52:38 2005 +0000

description:
Added the show-tools target, which emits a shell code fragment defining all
tools known to the pkgsrc infrastructure.

diffstat:

 mk/bsd.pkg.mk |  15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 2211d9b32ec4 -r 0be86dc4eb93 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Wed May 18 02:40:44 2005 +0000
+++ b/mk/bsd.pkg.mk     Wed May 18 02:52:38 2005 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1669 2005/05/17 22:07:56 jlam Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1670 2005/05/18 02:52:38 rillig Exp $
 #
 # This file is in the public domain.
 #
@@ -4880,3 +4880,16 @@
        ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_FLAGS} ${.TARGET}
 .endfor
 .undef _phase_
+
+# show-tools emits a /bin/sh shell script that defines all known tools
+# to the values they have in the pkgsrc infrastructure.
+#
+# Don't move this code away from here unless you know what you're doing.
+#
+.PHONY: show-tools
+show-tools:
+.for _t_ in ${_USE_TOOLS}
+.  if defined(_TOOLS_VARNAME.${_t_})
+       @${ECHO} ${_TOOLS_VARNAME.${_t_}:Q}=${TOOLS_PLATFORM.${_t_}:Q:Q}
+.  endif
+.endfor



Home | Main Index | Thread Index | Old Index