Suggestion Box: Add NICE feature



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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]