View previous topic :: View next topic |
Author |
Message |
mbutomax n00b


Joined: 29 Dec 2004 Posts: 45 Location: Italy
|
Posted: Wed Dec 29, 2004 2:32 pm Post subject: [Tip] Cercare i flag per emergere |
|
|
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 |
|
 |
fabius Guru


Joined: 29 Nov 2004 Posts: 525
|
Posted: Wed Dec 29, 2004 2:59 pm Post subject: |
|
|
Io uso questo alias
Code: |
alias usedesc='cat /usr/portage/profiles/use.* | grep'
|
e poi lo uso con
|
|
Back to top |
|
 |
randomaze Bodhisattva


Joined: 21 Oct 2003 Posts: 9985
|
Posted: Wed Dec 29, 2004 3:13 pm Post subject: |
|
|
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 |
|
 |
mbutomax n00b


Joined: 29 Dec 2004 Posts: 45 Location: Italy
|
Posted: Wed Dec 29, 2004 3:15 pm Post subject: |
|
|
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 |
|
 |
|