paraslash 0.4.7
[paraslash.git] / autogen.sh
1 #!/bin/sh
2 # check if we have multiple processors/cores
3 n=$(nproc 2>/dev/null)
4 if [ -z "$n" ]; then
5         n=$(grep ^processor /proc/cpuinfo 2>/dev/null | wc -l)
6         [ $n -eq 0 ] && n=1
7 fi
8 echo preparing, parallel=$n...
9 if test -f Makefile; then
10         make maintainer-clean > /dev/null 2>&1
11 fi
12 aclocal -I . > /dev/null 2>&1
13 autoconf
14 autoheader
15 echo configuring...
16 ./configure $@ > /dev/null
17 echo compiling...
18 make clean2 > /dev/null 2>&1
19 make -j $n > /dev/null