Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 May 2000 11:42:42 -0400
From:      Tim Vanderhoek <vanderh@ecf.utoronto.ca>
To:        Satoshi Asami <asami@cs.berkeley.edu>
Cc:        ports@freebsd.org
Subject:   Re: deleting empty info/dir files
Message-ID:  <20000501114242.A21944@ppp.on.bellglobal.com>
In-Reply-To: <200005010853.BAA25327@silvia.hip.berkeley.edu>; from Satoshi Asami on Mon, May 01, 2000 at 01:53:35AM -0700
References:  <200005010853.BAA25327@silvia.hip.berkeley.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000501114242.A21944>