On Sat, Nov 19, 2005 at 10:39:29PM -0500, Ned Ludd wrote:
> On Fri, 2005-11-18 at 10:16 -0600, Brian Harring wrote:
> [snip]
> 
> > Still have issues with it- revdep-rebuild for example can't rely on 
> > NEEDED until a repository regen script is written.
> 
> 
> # How about something like this then?
> 
> cd ${ROOT}/var/db/pkg || exit 1
> 
> for f in *-*/*/CONTENTS ; do
>       NEEDED="${f%/*}/NEEDED"
>       if [[ ! -e $NEEDED ]]; then
>               grep ^obj $f | awk '{print $2}' | scanelf -BF"%F %n" -f - > 
> $NEEDED
>       fi
> done
Aside from my inherint dislike of awk, algo is there.
Should be schlopped into emaint though imo; you game, or want someone 
to do the python bits?
~harring

Attachment: pgpvb3NztL6Xl.pgp
Description: PGP signature



Reply via email to