Suggestion Box: Add NICE feature

Peter <[email protected]>
Newsgroups gmane.comp.gnome.garnome
Message-ID <[email protected]>
Many times, I build garnome in a separate terminal as the build user. I
use nice -n 19 make-install for the modules I want. This allows me to work
with little disruption and keeps the compile chunking along as it can.

It would be nice (sorry about the pun) to assign a `niceness' value for
all compile and configure steps. This value would then be used when calls
to configure, make, tar, patch -- all external programs -- are made.

In some of my build scripts I handle it like this:

NICENESS=19

if [ $NICEVALUE -ne 0 ] ; then
	NICE="nice -n $NICEVALUE"
else
	NICE=
fi

Then, when commands are called

$NICE configure....
$NICE make|make install
$NICE tar
$NICE patch

These, of course, can be adapted for any Makefile. Probably gar.mk could
be used for a lot of this.

JM2C

-- 
Peter

-- 
garnome-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/garnome-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.