From owner-freebsd-current Thu Oct 22 01:33:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA10371 for freebsd-current-outgoing; Thu, 22 Oct 1998 01:33:16 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from axl.training.iafrica.com (axl.training.iafrica.com [196.31.1.175]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA10361 for ; Thu, 22 Oct 1998 01:32:59 -0700 (PDT) (envelope-from sheldonh@axl.training.iafrica.com) Received: from sheldonh (helo=iafrica.com) by axl.training.iafrica.com with local-esmtp (Exim 2.05 #1) id 0zWG9r-00058L-00; Thu, 22 Oct 1998 10:31:47 +0200 From: Sheldon Hearn To: "John Saunders" cc: "FreeBSD current" Subject: Re: Package upgrade check program In-reply-to: Your message of "Thu, 22 Oct 1998 15:08:29 +1000." <001b01bdfd7a$021fd540$6cb611cb@saruman.scitec.com.au> Date: Thu, 22 Oct 1998 10:31:46 +0200 Message-ID: <19736.909045106@iafrica.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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