From: Robert Schuster <theBohemian@gmx.net>
To: openembedded-devel@lists.openembedded.org
Subject: How to integrate this into OE?
Date: Wed, 17 Dec 2008 10:05:12 +0100 [thread overview]
Message-ID: <4948C0C8.7010702@gmx.net> (raw)
[-- 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 --]
reply other threads:[~2008-12-17 9:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4948C0C8.7010702@gmx.net \
--to=thebohemian@gmx.net \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.