* [gentoo-dev] USE flag swiss army knife
@ 2002-05-21 2:19 Michael Thompson
2002-05-21 3:16 ` George Shapovalov
2002-05-21 6:28 ` JR Boyens
0 siblings, 2 replies; 4+ messages in thread
From: Michael Thompson @ 2002-05-21 2:19 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1526 bytes --]
I whipped up this script a while back for personal use, but didn't clean it up
enough for public consumption until now. My girlfriend has been bugging me
to do this, and I never heard from Bob Phan about whether or not he was going
to make a command-line version of his nice GUI USE generator (don't want to
step on anyone's toes), so here is a tool/flamebait for you to check out and
comment on:
usetookit is a bash script that provides several functions:
ushow - lists the contents of your USE variable
udesc - lists descriptions for one of more USE variables
uadd - add a USE flag (enabled or disabled) to your USE variable
urm - remove a USE flag from your USE variable
use-update - an etc-update-like utility that will interactively remove
depreciated USE flags, then interactively add new USE flags, based on
use.desc. It keeps a cache of the contents of use.desc so that it will not
keep bugging you every time you run it about new USE flags that you chose not
to put in your USE variable.
To use this tool, place it in root's path, then create symlinks to the
functions you want to use:
e.g.
# ln -s usetoolkit use-update
Run usetoolkit by itself to get help.
Please keep in mind that my bash skills are practically non-existant, but that
this tool works (for me at least) and doesn't have any bugs that I know of.
Nevertheless, back up your make.conf before trying this.
Yes, I know the code is ugly and horribly inefficient. Please let me know
what else you think about it.
-- Michael Thompson
[-- Attachment #2: usetoolkit --]
[-- Type: application/x-shellscript, Size: 10616 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] USE flag swiss army knife
2002-05-21 2:19 [gentoo-dev] USE flag swiss army knife Michael Thompson
@ 2002-05-21 3:16 ` George Shapovalov
2002-05-22 1:32 ` Michael Thompson
2002-05-21 6:28 ` JR Boyens
1 sibling, 1 reply; 4+ messages in thread
From: George Shapovalov @ 2002-05-21 3:16 UTC (permalink / raw
To: gentoo-dev
Hi Michael
Thanks for the script!
Could you please submit it to bugs.gentoo.org?
One request/suggestion:
this linking single script to ~10 other names will create quite a mess to
install and maintain. Why not pass the action as a parameter a la emerge?
Like: usetoolkit add usevar.
This will be pretty natural for everybody who used gentoo to the smallest
extent.
George
On Monday 20 May 2002 19:19, Michael Thompson wrote:
> I whipped up this script a while back for personal use, but didn't clean it
> up enough for public consumption until now. My girlfriend has been bugging
> me to do this, and I never heard from Bob Phan about whether or not he was
> going to make a command-line version of his nice GUI USE generator (don't
> want to step on anyone's toes), so here is a tool/flamebait for you to
> check out and comment on:
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] USE flag swiss army knife
2002-05-21 2:19 [gentoo-dev] USE flag swiss army knife Michael Thompson
2002-05-21 3:16 ` George Shapovalov
@ 2002-05-21 6:28 ` JR Boyens
1 sibling, 0 replies; 4+ messages in thread
From: JR Boyens @ 2002-05-21 6:28 UTC (permalink / raw
To: gentoo-dev
Good work, I'm impressed. An addition to gentoolkit, maybe?
--
JR Boyens
jboyens@fooninja.org
On Mon, May 20, 2002 at 09:19:24PM -0500 or thereabouts, Michael Thompson wrote:
> I whipped up this script a while back for personal use, but didn't clean it up
> enough for public consumption until now. My girlfriend has been bugging me
> to do this, and I never heard from Bob Phan about whether or not he was going
> to make a command-line version of his nice GUI USE generator (don't want to
> step on anyone's toes), so here is a tool/flamebait for you to check out and
> comment on:
>
> usetookit is a bash script that provides several functions:
> ushow - lists the contents of your USE variable
> udesc - lists descriptions for one of more USE variables
> uadd - add a USE flag (enabled or disabled) to your USE variable
> urm - remove a USE flag from your USE variable
> use-update - an etc-update-like utility that will interactively remove
> depreciated USE flags, then interactively add new USE flags, based on
> use.desc. It keeps a cache of the contents of use.desc so that it will not
> keep bugging you every time you run it about new USE flags that you chose not
> to put in your USE variable.
>
> To use this tool, place it in root's path, then create symlinks to the
> functions you want to use:
> e.g.
> # ln -s usetoolkit use-update
> Run usetoolkit by itself to get help.
>
> Please keep in mind that my bash skills are practically non-existant, but that
> this tool works (for me at least) and doesn't have any bugs that I know of.
> Nevertheless, back up your make.conf before trying this.
>
> Yes, I know the code is ugly and horribly inefficient. Please let me know
> what else you think about it.
>
> -- Michael Thompson
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] USE flag swiss army knife
2002-05-21 3:16 ` George Shapovalov
@ 2002-05-22 1:32 ` Michael Thompson
0 siblings, 0 replies; 4+ messages in thread
From: Michael Thompson @ 2002-05-22 1:32 UTC (permalink / raw
To: gentoo-dev
On Monday 20 May 2002 10:16 pm, George Shapovalov wrote:
> Hi Michael
>
> Thanks for the script!
> Could you please submit it to bugs.gentoo.org?
> One request/suggestion:
> this linking single script to ~10 other names will create quite a mess to
> install and maintain. Why not pass the action as a parameter a la emerge?
> Like: usetoolkit add usevar.
> This will be pretty natural for everybody who used gentoo to the smallest
> extent.
>
> George
The script has been submitted as bug #2900.
(http://bugs.gentoo.org/show_bug.cgi?id=2900)
Also added a "help" option to print out a manual. I originally used symlinks
as I am lazy and like to type as little as possible on the command line.
However, your suggestion really is the Right Way(tm), so I modified the
script as you requested.
-- Michael Thompson
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-05-22 1:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-21 2:19 [gentoo-dev] USE flag swiss army knife Michael Thompson
2002-05-21 3:16 ` George Shapovalov
2002-05-22 1:32 ` Michael Thompson
2002-05-21 6:28 ` JR Boyens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox