From owner-freebsd-ports@FreeBSD.ORG Fri May 9 11:31:05 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E440737B401 for ; Fri, 9 May 2003 11:31:05 -0700 (PDT) Received: from avocet.mail.pas.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A83B43FAF for ; Fri, 9 May 2003 11:31:03 -0700 (PDT) (envelope-from parv_fm@mailsent.net) Received: from sdn-ap-013dcwashp0306.dialsprint.net ([63.188.129.52] helo=moo.holy.cow) by avocet.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 19ECe6-0002Wf-00 for freebsd-ports@freebsd.org; Fri, 09 May 2003 11:31:02 -0700 Received: by moo.holy.cow (Postfix, from userid 1001) id EFB47A2CC; Fri, 9 May 2003 14:34:13 -0400 (EDT) Date: Fri, 9 May 2003 14:34:13 -0400 From: parv To: f-ports Message-ID: <20030509183413.GA76108@moo.holy.cow> Mail-Followup-To: f-ports Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: Cleansing $PORTSDIR & adding entry to CVSup refuse file X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 May 2003 18:31:06 -0000 Hi, Does anybody know of a program/script which will remove a port directory and add an entry to CVSup refuse file, given a port directory (and/or a file in that directory which doesn't have to exist)? If i give the input matching following regex to the said program... (ports/)?/(/.*)? ($PORTSDIR/)?/(/.*)? ...the program would delete $PORTSDIR// and add an unique entry, ports//, to CVSup refuse file. Currently i have a bash version which has some things hard coded & not very flexible assumptions. That is to say my version is not suitable for public consumption yet. I think i would convert that to perl soon; didn't find anything in the ports. So, i ask about the above to get other ideas/suggestions. - parv --