Re: [gentoo-user] Re: Emerge needs a --nocolor option

2005-04-12 Thread David Morgan
On 15:14 Tue 12 Apr , Botykai Zsolt wrote:
> Tuesday 12 April 2005 13.49-n, A. Khattri ezt ?rta:
> > There really ought to be a --nocolor option for emerge, alongside the
> > --nospinner option. (I know I could add it to FEATURES in make.conf but I
> > dont want to do that). I run emerge --sync from cron on my servers - the
> > email from cron contains a lot of control codes.
> 
> until this you can do:
> insert '#NOCOLOR="true"' into make.conf then call this from cron:
> 
> #!/bin/bash
> sed 's/^#NOCOLOR="true"$/NOCOLOR="true"/g' /etc/make.conf > /tmp/make.conf \ 
> && cp /tmp/make.conf /etc/make.conf \
> &&  \
> && sed 's/^NOCOLOR="true"$/#NOCOLOR="true"/g' /tmp/make.conf > /etc/make.conf
> 

You could do that, or you could learn about sed's -i option, or better
yet, you could just use

NOCOLOR="true" emerge foo 

-- 
djm

--
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: Emerge needs a --nocolor option

2005-04-12 Thread Botykai Zsolt
Tuesday 12 April 2005 13.49-n, A. Khattri ezt írta:
> There really ought to be a --nocolor option for emerge, alongside the
> --nospinner option. (I know I could add it to FEATURES in make.conf but I
> dont want to do that). I run emerge --sync from cron on my servers - the
> email from cron contains a lot of control codes.

until this you can do:
insert '#NOCOLOR="true"' into make.conf then call this from cron:

#!/bin/bash
sed 's/^#NOCOLOR="true"$/NOCOLOR="true"/g' /etc/make.conf > /tmp/make.conf \ 
&& cp /tmp/make.conf /etc/make.conf \
&&  \
&& sed 's/^NOCOLOR="true"$/#NOCOLOR="true"/g' /tmp/make.conf > /etc/make.conf

But you're right, IMHO it should be implemented ...

Zsoltik@

--

Opinions, conclusions and other information in this message that do not
relate to the official business of Online Business Technologies Corp.
shall be understood as neither given nor endorsed by it. In such cases
Online Business Technologies Corp. will not bear the responsibility of
consequences.
If you have received this communication in error, please notify the
system manager immediately by responding to this email and then delete
it from your system.


A levelben foglalt, nem az Online Rt. hivatalos uzletmenetevel kapcsolatos
velemenyek vagy mas informaciok vonatkozasaban az Online Rt. nem vallal
felelosseget.
Amennyiben a level valamely hiba folytan jutott Onhoz, kerjuk, hogy
valaszlevelben azonnal ertesitse a rendszer uzemeltetojet, majd torolje ki
a levelet rendszerebol!