Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Tip] Cercare i flag per emergere
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
mbutomax
n00b
n00b


Joined: 29 Dec 2004
Posts: 45
Location: Italy

PostPosted: Wed Dec 29, 2004 2:32 pm    Post subject: [Tip] Cercare i flag per emergere Reply with quote

Io sono pigro non so voi. ;-)

Ho fatto questo semplicissimo scriptino per cercare al volo il significato dei flag da dare all'emerge.
Code:

#!/bin/sh

Flag=$1' -'
# Controllo del flag da passare alla variabile USE
tmp_File="/var/tmp/ChkFlag.sh.tmp"
DIR_USE="/usr/portage/profiles"
USE_FILE="$DIR_USE/use.desc $DIR_USE/use.local.desc"

for file in $USE_FILE
do
        grep "$Flag" $file > $tmp_File
        if [ -s $tmp_File ]
        then
                echo " = Trovato nel file $file:"
                cat $tmp_File
        fi
done


# cleaning temp files
\rm $tmp_File

_________________
Never Mind... Have a Pint !!!
http://www.massimilianosini.it
Back to top
View user's profile Send private message
fabius
Guru
Guru


Joined: 29 Nov 2004
Posts: 525

PostPosted: Wed Dec 29, 2004 2:59 pm    Post subject: Reply with quote

Io uso questo alias
Code:

alias usedesc='cat /usr/portage/profiles/use.* | grep'

e poi lo uso con
Code:

usedesc arts
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Wed Dec 29, 2004 3:13 pm    Post subject: Reply with quote

Da queste parti l'intraprendenza é sempre bene accetta.

Ma siccome i programmatori pigri sono in molti esiste un pacchetto che si chiama gentoolkit, che contine un programma chiamato euse che, tra le altre cose, fa anche:

Code:
#euse -i arts
global use flags (searching: arts)
************************************************************
[- c  ] arts - Adds support for aRts: the KDE sound daemon

local use flags (searching: arts)
************************************************************
no matching entries found


;-)
_________________
Ciao da me!
Back to top
View user's profile Send private message
mbutomax
n00b
n00b


Joined: 29 Dec 2004
Posts: 45
Location: Italy

PostPosted: Wed Dec 29, 2004 3:15 pm    Post subject: Reply with quote

Avevo avvertito che ero pigro.... ah ah ah...
La euse cosi' non l'avevo mai usata.

OK cancello lo script. fa praticamente la stessa cosa.
_________________
Never Mind... Have a Pint !!!
http://www.massimilianosini.it
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum