From owner-freebsd-ports Mon Jan 20 8:41:23 2003 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 C96D337B406 for ; Mon, 20 Jan 2003 08:41:22 -0800 (PST) Received: from analog.databits.net (analog.databits.net [198.78.65.155]) by mx1.FreeBSD.org (Postfix) with SMTP id 11FF043F6D for ; Mon, 20 Jan 2003 08:41:22 -0800 (PST) (envelope-from petef@analog.databits.net) Received: (qmail 55154 invoked by uid 1000); 20 Jan 2003 16:37:39 -0000 Date: Mon, 20 Jan 2003 10:37:39 -0600 From: Pete Fritchman To: Edwin Groothuis Cc: portmgr@freebsd.org, Erwin Lansing , ports@freebsd.org Subject: Re: pkg-plist - dirrm on shared dirs? Message-ID: <20030120163739.GA9751@absolutbsd.org> References: <20030120105343.GA23663@raq15.uk2net.com> <20030120110112.GC12043@droso.net> <20030120120127.GP50581@k7.mavetju> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030120120127.GP50581@k7.mavetju> User-Agent: Mutt/1.4i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org ++ 20/01/03 23:01 +1100 - Edwin Groothuis: | > Most ports use this "dirrm if empty" like: | > @unexec rmdir %D/share/java 2>/dev/null || true | | I was wondering if there could come a new command for it, @dirrmfailok | or something. It would save a lot of typing and typos (what %D?) %D is the prefix. I think @trydirrm would be a bit cleaner... and probably not too hard to implement. I'll try to take a look at it later, if people don't have objections or better ideas. --pete To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message