pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Add "show-vars-eval" target, which outputs eval-abl...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e7aa1a035b8b
branches: trunk
changeset: 501085:e7aa1a035b8b
user: tv <tv%pkgsrc.org@localhost>
date: Sun Oct 16 17:44:45 2005 +0000
description:
Add "show-vars-eval" target, which outputs eval-able shell expressions
to allow easy setting of multiple variables in one invocation.
diffstat:
mk/bsd.pkg.mk | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 3c8e5775ec89 -r e7aa1a035b8b mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk Sun Oct 16 17:42:46 2005 +0000
+++ b/mk/bsd.pkg.mk Sun Oct 16 17:44:45 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1730 2005/10/10 17:37:17 reed Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1731 2005/10/16 17:44:45 tv Exp $
#
# This file is in the public domain.
#
@@ -3907,6 +3907,14 @@
@${ECHO} ${${VARNAME}:Q}
.endfor
+# displays multiple variables as shell expressions
+# VARS is space separated list of VARNAME:shellvarname
+.PHONY: show-vars-eval
+show-vars-eval:
+.for var in ${VARS}
+ @${ECHO} ${var:C/^.*://}="${${var:C/:.*$//}:Q}"
+.endfor
+
.PHONY: print-build-depends-list
.if !target(print-build-depends-list)
print-build-depends-list:
Home |
Main Index |
Thread Index |
Old Index