From owner-freebsd-ports Wed Oct 4 18:45:17 2000 Delivered-To: freebsd-ports@freebsd.org Received: from blues.jpj.net (blues.jpj.net [204.97.17.146]) by hub.freebsd.org (Postfix) with ESMTP id 0419737B66D; Wed, 4 Oct 2000 18:45:15 -0700 (PDT) Received: from localhost (trevor@localhost) by blues.jpj.net (right/backatcha) with ESMTP id e951jEs27447; Wed, 4 Oct 2000 21:45:14 -0400 (EDT) Date: Wed, 4 Oct 2000 21:45:13 -0400 (EDT) From: Trevor Johnson To: Satoshi - Ports Wraith - Asami Cc: Brandon Fosdick , ports@FreeBSD.ORG Subject: Re: Ports layout/Combine DESCR and COMMENT Results? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > The big move will be done this weekend, but it doesn't include the > COMMENT -> Makefile change. IMO a nice way to do that would be with the comment as the second line of the Makefile: # New ports collection makefile for: auis # Andrew User Interface System # Date created: Sat Nov 18 15:23:47 MET 1995 # Whom: Andreas Klemm # I started work on a change for bsd.port.mk, but my sed skills weren't up to it. I'm thinking of something along these lines, so existing ports would still work: ${.CURDIR}/README.html: @${ECHO_MSG} "===> Creating README.html for ${PKGNAME}" .if exists(${COMMENT}) @${CAT} ${TEMPLATES}/README.port | \ ${SED} -e 's^A%%PORT%%^A'`${ECHO} ${.CURDIR} | ${SED} -e [...] -e '/%%COMMENT%%/r${COMMENT}' \ -e '/%%COMMENT%%/d' \ [...] .*aa' -e 'sa[^/]*a..ag'`"'/..^A' \ >> $@ .else (do something similar, but put the contents of the second line of the makefile, starting at character 3, in place of %%COMMENT%%) .endif -- Trevor Johnson http://jpj.net/~trevor/gpgkey.txt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message