From owner-freebsd-stable Wed Jun 5 0:10:50 2002 Delivered-To: freebsd-stable@freebsd.org Received: from firebat.bushong.net (12-235-38-234.client.attbi.com [12.235.38.234]) by hub.freebsd.org (Postfix) with ESMTP id 4541E37B406 for ; Wed, 5 Jun 2002 00:10:36 -0700 (PDT) Received: from firebat.bushong.net (nxbk9fy3esifqnba@localhost [127.0.0.1]) by firebat.bushong.net (8.12.3/8.12.3) with ESMTP id g557AXe6062357; Wed, 5 Jun 2002 00:10:33 -0700 (PDT) (envelope-from dbushong@bushong.net) Received: (from dbushong@localhost) by firebat.bushong.net (8.12.3/8.12.3/Submit) id g557AXQU062356; Wed, 5 Jun 2002 00:10:33 -0700 (PDT) Date: Wed, 5 Jun 2002 00:10:33 -0700 From: David Bushong To: The Unicorn Cc: Allan McDonald , freebsd-stable@FreeBSD.ORG Subject: Re: ports upgrade Message-ID: <20020605071033.GK27537@bushong.net> References: <0F08B228C722D311B5FC00A0C9FB2C7322B488@casserver.ozdaq.com.au> <20020604231048.GF27537@bushong.net> <20020605061402.GA89011@blackhats.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020605061402.GA89011@blackhats.org> User-Agent: Mutt/1.3.28i X-Floating-Sheep-Port: 0xbaa Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Some suggestions on your script. On Wed, Jun 05, 2002 at 08:14:02AM +0200, The Unicorn wrote: > I use the following script I once wrote. It is still not perfect and I > know it can be highy optimised, but most (99.999%) of the time it just > does the job. I have a similar script to cvsup and build the whole > world, create a new kernel and run mergemaster as well. It just makes > life easier. > > ... > > cvsup -g -L 2 /etc/cvsup-file 2>&1 && \ > If you set up /etc/make.conf right, you can make that: cd /usr/ports && make update > > ... > > pkgdb -F < /dev/tty > /dev/tty && \ > If you have any held ports, this will quietly (in the lines whirring past) skip them, and you won't necessarily have a fixed pkgdb; pkgdb -Ff is usually what I want. > > ... > > portversion -c | tee /root/tmp/do_update && \ > Given how long your script will take to run, I'm not sure there's any reason not to just: portupgrade -Ra If for some reason you don't want to, you might want to at least: portupgrade -C -R -c ... This will help keep the pkgdb in order for ports that depend on other ports that they didn't used to depend on. Just some thoughts. --David Bushong To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message