Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Oct 1998 10:31:46 +0200
From:      Sheldon Hearn <axl@iafrica.com>
To:        "John Saunders" <john.saunders@scitec.com.au>
Cc:        "FreeBSD current" <freebsd-current@FreeBSD.ORG>
Subject:   Re: Package upgrade check program 
Message-ID:  <19736.909045106@iafrica.com>
In-Reply-To: Your message of "Thu, 22 Oct 1998 15:08:29 %2B1000." <001b01bdfd7a$021fd540$6cb611cb@saruman.scitec.com.au> 

next in thread | previous in thread | raw e-mail | index | archive | help


On Thu, 22 Oct 1998 15:08:29 +1000, "John Saunders" wrote:

> 	# Get a list of ports matching the package base name.
> 	new=`grep "^$base" /usr/ports/INDEX | sed -e '1,$ s/|.*$//'`

I did something like this myself and hit the same problem you have --
the INDEX file isn't regenerated too frequently.

If you want your script to work "in the heat of the moment", you
should look at ports/Makefile, particularly the ``index'' target.

Ciao,
Sheldon.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



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