From owner-freebsd-ports Fri Oct 13 1:34:42 2000 Delivered-To: freebsd-ports@freebsd.org Received: from fling.sanbi.ac.za (fling.sanbi.ac.za [196.38.142.119]) by hub.freebsd.org (Postfix) with ESMTP id DA49437B66C for ; Fri, 13 Oct 2000 01:34:31 -0700 (PDT) Received: from johann by fling.sanbi.ac.za with local (Exim 3.13 #4) id 13k0FN-000Nl6-00; Fri, 13 Oct 2000 10:31:21 +0200 Date: Fri, 13 Oct 2000 10:31:20 +0200 From: Johann Visagie To: Trevor Johnson Cc: James Housley , Carlos A M dos Santos , FreeBSD ports mailing list Subject: Re: Script to genarate PLIST? Message-ID: <20001013103120.G89714@fling.sanbi.ac.za> References: <20001012120017.A97048@fling.sanbi.ac.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from trevor@jpj.net on Thu, Oct 12, 2000 at 02:57:05PM -0400 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Trevor Johnson on 2000-10-12 (Thu) at 14:57:05 -0400: > > > and the output of > > the find that adds the directories to $PLIST through "sort -r" (pretty much > > ensures the directories are removed in a sane order when deinstalling). > > Instead of sort -r, using the -d option will also work. Hmm, you're right, so it does. Cool. :) > > Hmm, and add something to remove man pages from $PLIST, I suppose. :-) > > Let me see what I can do... > > A pass through "grep -vw man" should give a close approximation. Then > you'll want to generate the MAN lines. Here's what I've come up with > (contains tabs and a long line): [ etc. ] Hrm, this is probably a more general approach than the one I took in my script, which assumes that the MAN
variables in Makefile are already correctly specified. Maybe all of this should be consolidated into a single script for ports/Tools/scripts ? -- Johann To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message