On 12/21/05, Boyd Stephen Smith Jr. <[EMAIL PROTECTED]> wrote: > On Wednesday 21 December 2005 14:50, "Boyd Stephen Smith Jr." > <[EMAIL PROTECTED]> wrote about 'Re: [gentoo-user] USE flags, command > line and packages.use': > > for pkg in $(cat /var/lib/portage/world); do > > FAKE_USE=$(equery u "$pkg") > > USE="" > > for use in $FAKE_USE; do > > USE="$USE ${use##+}" > > done > > echo "$pkg""$USE"; > > done >> /etc/portage/package.use > > > > Or something like that. > > Not that this is bash-golf or anything, but I think it's better to do it > like this: > > for pkg in $(cat /var/lib/portage/world); do > echo "$pkg$(echo $(equery u "$pkg") | sed -re 's/(^|[[:space:]])\+/ > /g')"; > done >> /etc/portage/package.use > > -- > Boyd Stephen Smith Jr. > [EMAIL PROTECTED] > ICQ: 514984 YM/AIM: DaTwinkDaddy > -- > gentoo-user@gentoo.org mailing list > >
Gotta love when scripters like one of your problems, gonna test all of the scripts, benchmark them in my system and post the results righ after to this thread, thank you guys, if I step into trouble I may add something to it and we could publish it as part of Gentoo, so if one use the command line to set USEs, it could rebuild package.use after a few emerges or before an update. Thanks again, I'll get back later (christmas shopping with girlfriend, hate that) -- Daniel da Veiga Computer Operator - RS - Brazil -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V- PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++ ------END GEEK CODE BLOCK------ -- gentoo-user@gentoo.org mailing list