| View previous topic :: View next topic |
| Author |
Message |
Dralnu Veteran


Joined: 24 May 2006 Posts: 1919
|
Posted: Sun May 18, 2008 2:15 am Post subject: |
|
|
You can seperate USE-flags using \'s.
Example:
USE="X alsa \
foo bar"
I don't know if you can add a comment to the end of the line doing this, though. _________________ The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner. |
|
| Back to top |
|
 |
ok Guru


Joined: 11 Jul 2006 Posts: 390 Location: germany
|
Posted: Wed May 28, 2008 11:48 pm Post subject: |
|
|
I would do:
| Code: | | . /etc/make.conf && echo $USE | tr ' ' '\n' | sort | tr '\n' ' ' |
|
|
| Back to top |
|
 |
ZyX I n00b

Joined: 15 Jan 2008 Posts: 1
|
Posted: Wed Jun 04, 2008 3:10 pm Post subject: |
|
|
What about this code (USE flags with explanations): | Code: | | USEDESCLIST=$(slocate .desc | grep -P '/use\.([^/]+\.)?desc' || find /usr -name 'use.*desc') ; echo "$(source /etc/make.conf && echo $USE | awk '{ for(i=NF;i>0;i--) print $i }' | sort)" | while read i ; do echo -ne "USE=\"\${USE} $i\" # " ; cat $USEDESCLIST | grep -P "^$(echo $i | sed 's/^-//')[[:blank:]]" || echo "" ; done | By the way, I have my USE flags written like that: | Code: | USE="X alsa
foo bar" | (without backslash before newline) and it works. However, I put almost all flags in /etc/portage/package.use |
|
| Back to top |
|
 |
|
|
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
|
|