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