Suggestion Box: Add NICE feature
- From: Peter <sw98234 hotmail com>
- To: garnome-list gnome org
- Subject: Suggestion Box: Add NICE feature
- Date: Sat, 27 Jan 2007 12:41:43 +0000 (UTC)
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]