8 test -n "$1" && RESULTS=$1 || RESULTS=results.log
10 test -f Makefile && make -k distclean || :
12 ./autogen.sh --prefix="$AUTOBUILD_INSTALL_ROOT" \
13 --enable-compile-warnings=error \
16 # If the MAKEFLAGS envvar does not yet include a -j option,
17 # add -jN where N depends on the number of processors.
20 *) n=$(getconf _NPROCESSORS_ONLN 2> /dev/null)
21 test "$n" -gt 0 || n=1
23 MAKEFLAGS="$MAKEFLAGS -j$n"
34 if [ -n "$AUTOBUILD_COUNTER" ]; then
35 EXTRA_RELEASE=".auto$AUTOBUILD_COUNTER"
38 EXTRA_RELEASE=".$USER$NOW"
41 if [ -f /usr/bin/rpmbuild ]; then
43 --define "extra_release $EXTRA_RELEASE" \
44 --define "_sourcedir `pwd`" \
45 -ba --clean entangle.spec