Subject: Re: How to quarterly update
To: George Georgalis <george@galis.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 11/08/2005 09:38:19
On Tue, 8 Nov 2005, George Georgalis wrote:

> for m in $( for n in `pkg_info | sed -e 's/ .*//' -e 's/-[^-]*$//' ` ; 
> do find /usr/pkgsrc -maxdepth 2 -name $n ; done ); do cd $m && make 
> clean ; done

Instead of repeatedly using find to look for matching directory name, just 
use:

pkg_info -Q PKGPATH -a

(That won't help with renamed directories, but hopefully that won't hit 
you often.)

  Jeremy C. Reed

  	  	 	 technical support & remote administration
 	  	 	 http://www.pugetsoundtechnology.com/