Date: Fri, 9 Jun 2006 09:39:31 -0700 From: "Ian A. Tegebo" <yontege@rescomp.berkeley.edu> To: Garance A Drosihn <drosih@rpi.edu> Cc: Matthias Andree <matthias.andree@gmx.de>, freebsd-ports@freebsd.org Subject: Re: Long-standing portupgrade vs. make config issue Message-ID: <20060609163931.GH21463@rescomp.berkeley.edu> In-Reply-To: <p0623092fc0ae00924bc0@[128.113.24.47]> References: <m3mzcnx3jf.fsf@merlin.emma.line.org> <p0623092fc0ae00924bc0@[128.113.24.47]>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 08, 2006 at 12:35:42PM -0400, Garance A Drosihn wrote: > options. I do, at times, get prompted for the options > of one port, answer that screen and walk away, only to > later see that I was also prompted for the options of > some other port. You might want to check out a thread in freebsd-questions: ====================================================================== From: RW <list-freebsd-2004@morbius.sent.com> To: freebsd-questions@freebsd.org Date: Mon, 27 Mar 2006 14:45:14 +0100 Subject: Re: ports and interactivity ... > I want to do all the human work of evaluating options and > making decisions up front Try this: -------------------------------------------------------------------------------------------- #!/bin/sh # Get list of out-of-date ports # This may take some time plist=`pkg_version -ovl'<' |awk '{ print $1 }'` # allow each out-of-date port to update it's config, and that of any new # dependencies (dialog only runs when something has changed) for port in $plist ; do cd /usr/ports/${porg} && make config-recursive done ====================================================================== I've modified this slightly to be: ---------------------------------------------------------------------- #!/bin/sh origin=$1 PREFIX="/usr/ports" echo Determing dependencies for $origin... # You can change the target from 'all-depends-list' to: # {build<para>ckage,run}-depends-list path_list=$(cd ${PREFIX}/$origin; make all-depends-list) for path in $path_list ; do echo Configuring $(echo $path|sed "s#${PREFIX}/##")... ( cd $path ; sudo make config-recursive ) done ---------------------------------------------------------------------- -- Ian Tegebo Residential Computing University of California Berkeley
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060609163931.GH21463>