From owner-freebsd-ports Mon May 1 8:42:50 2000 Delivered-To: freebsd-ports@freebsd.org Received: from tomts1-srv.bellnexxia.net (tomts1.bellnexxia.net [209.226.175.139]) by hub.freebsd.org (Postfix) with ESMTP id 4565C37B6AC for ; Mon, 1 May 2000 08:42:48 -0700 (PDT) (envelope-from hoek@FreeBSD.org) Received: from Hamilton-ppp44812.sympatico.ca ([206.172.76.5]) by tomts1-srv.bellnexxia.net (InterMail vM.4.01.02.17 201-229-119) with ESMTP id <20000501154246.KQIF28912.tomts1-srv.bellnexxia.net@Hamilton-ppp44812.sympatico.ca>; Mon, 1 May 2000 11:42:46 -0400 Received: (from tim@localhost) by Hamilton-ppp44812.sympatico.ca (8.9.3/8.9.1) id LAA28776; Mon, 1 May 2000 11:42:43 -0400 (EDT) (envelope-from tim) Date: Mon, 1 May 2000 11:42:42 -0400 From: Tim Vanderhoek To: Satoshi Asami Cc: ports@freebsd.org Subject: Re: deleting empty info/dir files Message-ID: <20000501114242.A21944@ppp.on.bellglobal.com> References: <200005010853.BAA25327@silvia.hip.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: <200005010853.BAA25327@silvia.hip.berkeley.edu>; from Satoshi Asami on Mon, May 01, 2000 at 01:53:35AM -0700 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, May 01, 2000 at 01:53:35AM -0700, Satoshi Asami wrote: > > What do you think about the following? It basically adds the line > > @unexec if [ -f %D/info/dir ]; then if sed -e '1,/Menu:/d' %D/info/dir | grep -q '^[*] '; then true; else rm %D/info/dir; fi; fi Isn't this just a slightly more complicated way of saying: @unexec if [ -f %D/info/dir] && (! sed -e '1,/Menu:/d' %D/info/dir | grep -q '^[*] '; then rm %D/info/dir; fi ? > Maybe Tim 'hoek will tell me how to do it only once and after "@unexec > install-info" (it is fine either way, but it will look nicer :). There's obviously something I don't understand here, since I would just change the > -e "s^^\@exec [ -f %D/info/dir -o ! -f /usr/share/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir^g" \ > + -e "t fix" -e "b" -e ":fix" -e "G" | \ > + ${SED} -e "/\@exec install-info.*$$/h" \ ^^^^ to an '@unexec'. Since it's obvious I don't understand the question, I won't even try to answer. :-) -- Signature withheld by request of author. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message