* How to integrate this into OE?
@ 2008-12-17 9:05 Robert Schuster
0 siblings, 0 replies; only message in thread
From: Robert Schuster @ 2008-12-17 9:05 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 1011 bytes --]
Hi,
get 'notify-send' for your distro (libnotify-bin in Debian/Ubuntu) and
then try this bash script ->
sd ()
{
local cmd=$@
local app=$1
shift
($app "$@")
if [ $? = 0 ]
then
notify-send ":-) done: '$cmd'"
else
notify-send --urgency=critical ":'( <i>failed:</i> '$cmd'"
fi
}
like this:
sd make bla
or enjoy success:
sd echo "Hello World"
If you do not want to try this out. This script uses freedesktop.org's
notify-send application to inform you whether the operation following sd
failed or not. It also prints the command and paints an appropriate
emoticon. I find this practical when I am working on OE and check my
mail, read blogs while a build is running.
At the moment I would use this for OE like this:
sd bitbake foobar
and get a nice graphical notice whether my build failed or succeeded.
My question is how could we optionally put this into OE directly?
Ideally in some form of 'INHERIT += notify-send'.
Regards
Robert
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 268 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-12-17 9:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-17 9:05 How to integrate this into OE? Robert Schuster
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.