]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Merge branch 't/autogen'
authorAndre Noll <maan@systemlinux.org>
Thu, 21 Apr 2011 20:56:56 +0000 (22:56 +0200)
committerAndre Noll <maan@systemlinux.org>
Thu, 21 Apr 2011 21:07:11 +0000 (23:07 +0200)
NEWS
autogen.sh

diff --git a/NEWS b/NEWS
index 3443ebb3d5362afd5a72d1ba8d415d6c193217c9..c08197f522011aaceb409c542ad1ca6e75a160d0 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,8 @@
 
        - configure: improved options for ogg/vorbis/speex.
        - The git version reported by --version always matches HEAD.
+       - The autogen script detects the number of processors and
+         runs a parallel make if possible.
 
 ------------------------------------------
 0.4.6 (2011-03-31) "deterministic entropy"
index a047f7c4d9f0bc704ade2ed049118c0eb3e02f7f..e5000a6fd70cddc63b1f2a2dc21f54bc760641bc 100755 (executable)
@@ -1,7 +1,13 @@
 #!/bin/sh
-echo preparing...
+# check if we have multiple processors/cores
+n=$(nproc 2>/dev/null)
+if [ -z "$n" ]; then
+       n=$(grep ^processor /proc/cpuinfo 2>/dev/null | wc -l)
+       [ $n -eq 0 ] && n=1
+fi
+echo preparing, parallel=$n...
 if test -f Makefile; then
-       make maintainer-clean > /dev/null
+       make maintainer-clean > /dev/null 2>&1
 fi
 aclocal -I . > /dev/null 2>&1
 autoconf
@@ -10,4 +16,4 @@ echo configuring...
 ./configure $@ > /dev/null
 echo compiling...
 make clean2 > /dev/null 2>&1
-make > /dev/null
+make -j $n > /dev/null