8 test -n "$1" && RESULTS
=$1 || RESULTS
=results.log
9 : ${AUTOBUILD_INSTALL_ROOT=$HOME/builder}
11 test -f Makefile
&& make -k distclean ||
:
18 .
/autogen.sh
--prefix="$AUTOBUILD_INSTALL_ROOT" \
19 --enable-test-coverage \
20 --enable-compile-warnings=error \
23 # If the MAKEFLAGS envvar does not yet include a -j option,
24 # add -jN where N depends on the number of processors.
27 *) n
=$
(getconf _NPROCESSORS_ONLN
2> /dev
/null
)
28 test "$n" -gt 0 || n
=1
30 MAKEFLAGS
="$MAKEFLAGS -j$n"
38 # set -o pipefail is a bashism; this use of exec is the POSIX alternative
42 { make check syntax-check
2>&1; echo $?
>&4; } |
tee "$RESULTS"
46 test -x /usr
/bin
/lcov
&& make cov
51 if [ -n "$AUTOBUILD_COUNTER" ]; then
52 EXTRA_RELEASE
=".auto$AUTOBUILD_COUNTER"
55 EXTRA_RELEASE
=".$USER$NOW"
58 if [ -f /usr
/bin
/rpmbuild
]; then
60 --define "extra_release $EXTRA_RELEASE" \
61 --define "_sourcedir `pwd`" \
62 -ba --clean libvirt.spec
65 if [ -x /usr
/bin
/i686-pc-mingw32-gcc
]; then
68 PKG_CONFIG_PATH
="$AUTOBUILD_INSTALL_ROOT/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig" \
69 CC
="i686-pc-mingw32-gcc" \
71 --build=$
(uname
-m)-pc-linux \
72 --host=i686-pc-mingw32 \
73 --prefix="$AUTOBUILD_INSTALL_ROOT/i686-pc-mingw32/sys-root/mingw" \
74 --enable-compile-warnings=error \
96 #make check 2>&1 | tee "$RESULTS"
98 if [ -f /usr
/bin
/rpmbuild
]; then
100 --define "extra_release $EXTRA_RELEASE" \
101 --define "_sourcedir `pwd`" \
102 -ba --clean mingw32-libvirt.spec