Date: Thu, 20 Jul 2000 03:24:32 +0200 (CEST) From: Christian Weisgerber <naddy@mips.inka.de> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/20048: Mk/bsd.port.mk: "show" target to display variables Message-ID: <200007200124.DAA34278@bigeye.mips.inka.de>
next in thread | raw e-mail | index | archive | help
>Number: 20048 >Category: ports >Synopsis: Mk/bsd.port.mk: "show" target to display variables >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jul 19 18:40:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Christian Weisgerber >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: >Description: When developing ports or debugging bsd.port.mk it would be helpful to be able to display the values of bsd.port.mk variables. The small patch below adds a target "show" for this purpose. From OpenBSD. >How-To-Repeat: Example: $ make MASTER_SORT='.edu .com' show VARNAME=MASTER_SITES >Fix: --- /usr/ports/Mk/bsd.port.mk.orig Wed Jul 19 21:38:05 2000 +++ /usr/ports/Mk/bsd.port.mk Wed Jul 19 21:47:00 2000 @@ -2775,6 +2775,13 @@ fi .endif +.if defined(VARNAME) +show: +.for _var in ${VARNAME} + @echo ${${_var}:Q} +.endfor +.endif + # Depend is generally meaningless for arbitrary ports, but if someone wants # one they can override this. This is just to catch people who've gotten into # the habit of typing `make depend all install' as a matter of course. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007200124.DAA34278>