]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
build:
authorDave Hart <hart@ntp.org>
Tue, 14 Apr 2009 02:59:39 +0000 (02:59 +0000)
committerDave Hart <hart@ntp.org>
Tue, 14 Apr 2009 02:59:39 +0000 (02:59 +0000)
  do not require nice

bk: 49e3fc1btXXwldInx0TZj4YVjXnJJQ

build

diff --git a/build b/build
index 6bbd18302f7ef8a72648abd2338ecc817d4f2505..2a65d8678266faad525febfdb4b008acd08f00a2 100755 (executable)
--- a/build
+++ b/build
@@ -3,6 +3,7 @@
 LOGF=make.log
 IAM=`hostname || uname -n`
 MYNAME=`IFS=. ; set $IAM ; echo $1`
+SIG=
 
 case "$1" in
  0.*)
@@ -89,17 +90,33 @@ BDIR="$BDIR$KEYSUF$CCSUF"
 [ -f "$BDIR/.buildcvo" ] || echo $CVO > $BDIR/.buildcvo
 [ -f "$BDIR/.buildhost" ] || echo $IAM > $BDIR/.buildhost
 
+
 cd $BDIR
 
+#
+# make sure we have a nice that works,
+#
+nice true && NICEB=nice
+nice true || NICEB=./.nicebuild-$MYNAME-$SIG && (
+    cat > .nicebuild-$MYNAME-$SIG <<UNLYKUHLY
+#! /bin/sh
+shift
+\$*
+UNLYKUHLY
+    chmod +x .nicebuild-$MYNAME-$SIG
+)
+
+
 (
-[ -f config.status ] || nice -11 ../configure --config-cache $CONFIG_ARGS
+[ -f config.status ] || $NICEB -7 ../configure --config-cache \
+                               $CONFIG_ARGS
 
-nice -12 ./config.status
+$NICEB -5 ./config.status
 
 case "$MAKE" in
- '') nice -16 make && nice -18 make check
+ '') $NICEB -14 make && $NICEB -10 make check
      ;;
- *) nice -16 $MAKE && nice -18 $MAKE check
+ *)  $NICEB -14 $MAKE && $NICEB -10 $MAKE check
      ;;
 esac
 ) > $LOGF 2>&1