Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Sep 2006 22:45:56 +0200 (CEST)
From:      Lars Engels <lars.engels@0x20.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/103161: Add 'make version' to bsd.port.mk
Message-ID:  <200609112045.k8BKjuEc007074@maggie.bsd-geek.de>
Resent-Message-ID: <200609112050.k8BKoOT9027746@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         103161
>Category:       ports
>Synopsis:       Add 'make version' to bsd.port.mk
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 11 20:50:23 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Lars Engels
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD maggie.bsd-geek.de 7.0-CURRENT FreeBSD 7.0-CURRENT #6: Mon Sep 11 21:18:11 CEST 2006 lars@maggie.bsd-geek.de:/usr/obj/usr/src/sys/MAGGIE i386


	
>Description:
When run in a port's directory, 'make version' shows the the port's name and version (${PKGNAME}), so no more searching in the Makefile is needed.
While I'm in ports.7, I added the description for 'make maintainer', too.
	
>How-To-Repeat:
	
>Fix:

	

--- make_version.diff begins here ---
--- bsd.port.mk.orig	Mon Aug 14 15:24:18 2006
+++ bsd.port.mk	Thu Aug 24 20:45:45 2006
@@ -2763,6 +2763,11 @@
 	@${ECHO_CMD} "${MAINTAINER}"
 .endif
 
+.if !target(version)
+version:
+	@${ECHO_CMD} "${PKGNAME}"
+.endif
+
 .if !target(check-makefile)
 check-makefile::
 	@${DO_NADA}
--- ports.7.orig	Thu Aug 24 20:49:25 2006
+++ ports.7	Mon Sep 11 22:38:51 2006
@@ -321,6 +321,10 @@
 Generate a one-line description of each port for use in the
 .Pa INDEX
 file.
+.It Cm maintainer
+Show e-mail address of the port's maintainer.
+.It Cm version
+Show version of the port.
 .It Cm index
 Create
 .Pa /usr/ports/INDEX ,
--- make_version.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609112045.k8BKjuEc007074>