From: Rob Landley <landley@trommello.org>
To: linux-kernel@vger.kernel.org
Subject: [RFC] [PATCH] Intelligible build progress
Date: Thu, 10 Jan 2002 06:11:20 -0500 [thread overview]
Message-ID: <200201101858.g0AIw7A18958@snark.thyrsus.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1883 bytes --]
I got bored. I wrote a toy. It's an output filter you pipe a build into
that actually explains what's going on. It cuts the output down enough that
you can actually see warnings (wow!), but not so much you don't know what
it's doing or have some kind of progress indicator.
It's evil, it's nasty, it's ugly, it's vicious. It currently requires python
2.x (because I intend to put a curses front end on it, that's why). But it
also seems to be working, so I'm releasing what I've got so far under the GPL
so people can flame me now and avoid the rush. :)
At the moment, you just copy "blueberry.py" onto your system (the "scripts"
directory makes sense) and then use it like this (cut and paste and you've
got a shell script):
### Start of script
# "Entering directory" messages are just clutter in make dep
make dep | scripts/blueberry.py e
# This is short enough we don't need to see progress
echo "Cleaning out old temporary files."
echo " "
make clean > /dev/null
# Okay, build.
make bzImage | scripts/blueberry.py
make modules | scripts/blueberry.py
# make install/modules install require root access, not handling this yet.
### End of script
As I said, later I want to make it part of a curses front-end showing you
what directory you're currently in, what action is being taken, and with
stderr (warnings, etc) scrolling by in its own little box. Oh, and not
having to run make dep and make clean all the time would be nice too, but
that waits on Kieth Owens' new makefiles.
Yeah it's a big evil mess of heuristics. I know. And the above script will
still try to build modules if bzImage bombs with an error. And you've got to
ctrl-c twice to kill it...
I've tested it (if you can use that word) against 2.4.17, I don't know if
there's new stuff in 2.5 it can't deal with yet. (Shouldn't be, but...)
Here's the file.
You may cringe now.
[-- Attachment #2: blueberry.py --]
[-- Type: application/x-python, Size: 2987 bytes --]
reply other threads:[~2002-01-10 19:13 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=200201101858.g0AIw7A18958@snark.thyrsus.com \
--to=landley@trommello.org \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®