From owner-freebsd-questions Wed Mar 13 15:39:41 2002 Delivered-To: freebsd-questions@freebsd.org Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id 6300E37B429; Wed, 13 Mar 2002 15:39:26 -0800 (PST) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id E8443BE28; Wed, 13 Mar 2002 15:39:25 -0800 (PST) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id PAA17546; Wed, 13 Mar 2002 15:39:25 -0800 Received: (from jojo@localhost) by localhost.localdomain (8.11.6/8.11.3) id g2DNgOi15930; Wed, 13 Mar 2002 15:42:24 -0800 (PST) (envelope-from swear@blarg.net) To: "Mike Meyer" Cc: "J.S." , freebsd-questions@FreeBSD.ORG, ports@FreeBSD.ORG Subject: Re: Ports collection falling behind References: <20020312214509.3616bdd5.johann@broadpark.no> <15502.28105.634074.758224@guru.mired.org> From: swear@blarg.net (Gary W. Swearingen) Date: 13 Mar 2002 15:42:23 -0800 In-Reply-To: <15502.28105.634074.758224@guru.mired.org> Message-ID: Lines: 31 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Mike Meyer" writes: > Do "make maintainer" in each of those directories, and it'll tell you > who's responsible for updating them. I just yesterday wrote this crummy little script which avoids the need to change directories. It doesn't work for some port names which don't have identically-named directories (eg, "xemacs" and "xemacs21/"). #!/bin/sh ## This returns the e-mail address of the maintainer of port specified ## by the sole argument which must be the pathname (abs or rel) of the ## port's directory or the version-less port name. if [ ${#} != 1 ]; then echo "USAGE: ${0} " exit 1 fi XXX="${1##*/}" ## Remove any dirs if [ "${XXX}" = "$1" ]; then ## if it didn't have any dirs XXX="$(whereis ${XXX})" for DIR in $XXX; do if [ "/usr/ports/${DIR##/usr/ports/}" = "${DIR}" ]; then grep -H MAINTAINER "${DIR}/Makefile" fi done else grep MAINTAINER "${1}/Makefile" | cut -f 2 fi ## The End. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message