public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] add a "beep" to Portage
@ 2002-12-12 16:52 Bob Thomas
  2002-12-12 18:43 ` Gustavo Felisberto
  0 siblings, 1 reply; 6+ messages in thread
From: Bob Thomas @ 2002-12-12 16:52 UTC (permalink / raw
  To: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I think it would be useful (at least to me, at this moment) to have an
option in portage to output a beep (char 7) when it is finished with an
emerge. This would be an option that is off by default, but could be
turned on if you wanted to be building several things in the background
(another console perhaps) and you wanted to be notified when it was done
to make more efficient use of your time. I doubt it would be more than a
~  few lines of code added. Something like:

if(BEEP_ON_FINISH)
	printf((char)7);

???

Anyway . . . back to rebuilding everything (new CFLAGS :-p )


- --
Robert Thomas
Georgia Institute of Technology
Email: gtg663h@mail.gatech.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9+L7YkRe6eFyQaRcRAuw6AJ9XGOxTSOdbW4IU//5BxPZgMPtepQCeL19a
y/adU34YCAnXAknbm0shHZY=
=ntVJ
-----END PGP SIGNATURE-----


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] add a "beep" to Portage
  2002-12-12 16:52 [gentoo-dev] add a "beep" to Portage Bob Thomas
@ 2002-12-12 18:43 ` Gustavo Felisberto
  2002-12-12 18:59   ` Bob Thomas
  0 siblings, 1 reply; 6+ messages in thread
From: Gustavo Felisberto @ 2002-12-12 18:43 UTC (permalink / raw
  To: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> option in portage to output a beep (char 7) when it is finished with an

How about:
emerge beep
and then
emerge whatever; beep -r 2
Or a small script that dos it for you?

Gustavo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9+NjADysutLny1SoRAuogAKCaJtCd6F3aQMt2/y1jSnElOufYUACcCRKP
0fvMYETX4Fjhm1dTMEmbhzA=
=oaah
-----END PGP SIGNATURE-----


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] add a "beep" to Portage
  2002-12-12 18:43 ` Gustavo Felisberto
@ 2002-12-12 18:59   ` Bob Thomas
  2002-12-13 13:25     ` Bob Phan
  2002-12-14 16:31     ` Karsten Schulz
  0 siblings, 2 replies; 6+ messages in thread
From: Bob Thomas @ 2002-12-12 18:59 UTC (permalink / raw
  To: Gustavo Felisberto; +Cc: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gustavo Felisberto wrote:
|
|
|>option in portage to output a beep (char 7) when it is finished with an
|
|
| How about:
| emerge beep
| and then
| emerge whatever; beep -r 2
| Or a small script that dos it for you?
|
| Gustavo

- --
gentoo-dev@gentoo.org mailing list


Well, if you were going to put something on every line linke that, you
could put emerge whatever; echo -e \\7. I was thinking of something that
wouldn't involve the extra typing, it would just beep when the emerge
finished without having to type something extra every time you emerged
something. In retrospect, it's not a big enough deal to modify Portage over.

- --
Robert Thomas
Georgia Institute of Technology
Email: gtg663h@mail.gatech.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9+Nx6kRe6eFyQaRcRAuVSAJ4weQyT548LUhutLku7qIm6B3/2hwCeOP4M
UmCP4qRqxNzm78oaMHfJQwo=
=4oEf
-----END PGP SIGNATURE-----


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] add a "beep" to Portage
  2002-12-12 18:59   ` Bob Thomas
@ 2002-12-13 13:25     ` Bob Phan
  2002-12-15 20:20       ` Aron Griffis
  2002-12-14 16:31     ` Karsten Schulz
  1 sibling, 1 reply; 6+ messages in thread
From: Bob Phan @ 2002-12-13 13:25 UTC (permalink / raw
  To: gentoo-dev

* [Dec 12, 2002] Bob Thomas <gtg663h@mail.gatech.edu>:
> Gustavo Felisberto wrote:
> >
> >
> > > option in portage to output a beep (char 7) when it is finished
> > > with an
> >
> >
> > How about:
> > emerge beep
> > and then
> > emerge whatever; beep -r 2
> > Or a small script that dos it for you?
> 
> Well, if you were going to put something on every line linke that, you
> could put emerge whatever; echo -e \\7. I was thinking of something
> that wouldn't involve the extra typing, it would just beep when the
> emerge finished without having to type something extra every time you
> emerged something. In retrospect, it's not a big enough deal to modify
> Portage over.

You can simulate the effect you're going after with a quick bash
function:

function emerge {
    /usr/bin/emerge $@; echo -e \\7
}

That way, there's no extra typing needed nor installing other packages,
and it works right now.  I suppose you could also swap the echo
statement with aplay and have it play some kind of compile is finished
sound.  Seems kind of interesting.

-- 
/*
 * Bob Phan <bob@endlessrecursion.net,rphan@nrgn.com>
 * Computational Chemistry Informatics
 * Neurogen Corporation
 * (203)488-8201 x4645
 *
 * To understand recursion, you must first understand recursion.
 * http://www.endlessrecursion.net/
 */

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] add a "beep" to Portage
  2002-12-12 18:59   ` Bob Thomas
  2002-12-13 13:25     ` Bob Phan
@ 2002-12-14 16:31     ` Karsten Schulz
  1 sibling, 0 replies; 6+ messages in thread
From: Karsten Schulz @ 2002-12-14 16:31 UTC (permalink / raw
  To: gentoo-dev

On Donnerstag, 12. Dezember 2002 19:59, Bob Thomas wrote:
> I was thinking of something that wouldn't involve the extra typing, it would
> just beep when the emerge finished without having to type something extra
> every time you emerged something.

what about creating a script /root/bin/emerge:
#!/bin/bash
emerge $*
echo -e \007

Karsten


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] add a "beep" to Portage
  2002-12-13 13:25     ` Bob Phan
@ 2002-12-15 20:20       ` Aron Griffis
  0 siblings, 0 replies; 6+ messages in thread
From: Aron Griffis @ 2002-12-15 20:20 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 280 bytes --]

Bob Phan wrote:[Fri Dec 13 2002, 08:25:05AM EST]
> function emerge {
>     /usr/bin/emerge $@; echo -e \\7
> }

Note this should be "$@", not bare $@ if you want to preserve quoting of
the original args.  This is a common mistake in shell scripting.

Ref "man bash", /^ *\@

Aron

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-12-15 20:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-12 16:52 [gentoo-dev] add a "beep" to Portage Bob Thomas
2002-12-12 18:43 ` Gustavo Felisberto
2002-12-12 18:59   ` Bob Thomas
2002-12-13 13:25     ` Bob Phan
2002-12-15 20:20       ` Aron Griffis
2002-12-14 16:31     ` Karsten Schulz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox