exit 127
}
-die ()
+function die ()
{
echo "$BASH_SOURCE:$BASH_LINENO: $@" >&2
exit 1;
snapshot_check
}
+function make_for_mingw32 ()
+{
+ # Make sure it is clean
+ if [ -f Makefile -o -f configure ]; then
+ make_maintainer_clean
+ fi
+ assert_no_file 'Makefile'
+
+ if command_exists mingw32-configure; then
+ run_autoreconf
+
+ mingw32-configure || die 'mingw32-configure failed'
+ assert_file 'Makefile'
+
+ if command_exists mingw32-make; then
+ mingw32-make || die 'mingw32-make failed'
+ fi
+ fi
+}
+
# If we are locally testing, we should make sure the environment is setup correctly
function check_for_jenkins ()
{
fi
}
+function make_universe ()
+{
+ make_for_snapshot
+ make_valgrind
+ make_gdb
+ make_rpm
+ make_for_mingw32
+ make_distcheck
+ make_install_system
+}
+
function make_for_continuus_integration ()
{
# Setup the environment if we are local
run_configure
fi
- if test -n "$TESTS_ENVIRONMENT" -a $VERBOSE; then
+ if [ -n "$TESTS_ENVIRONMENT" -a $VERBOSE ]; then
echo "TESTS_ENVIRONMENT=$TESTS_ENVIRONMENT"
fi
function make_rpm ()
{
- run_configure_if_required
- make_target 'rpm'
+ if [ -f 'rpm.am' -o -d 'rpm' ]; then
+ run_configure_if_required
+ make_target 'rpm'
+ fi
}
function make_maintainer_clean ()
fi
fi
+ if [ "$VCS_CHECKOUT" ]; then
+ if $DEBUG; then
+ MAKE="$MAKE --warn-undefined-variables"
+ fi
+ fi
+
if $DEBUG; then
- MAKE="$MAKE --warn-undefined-variables"
+ MAKE="$MAKE -d"
fi
fi
GNU_BUILD_FLAGS="$GNU_BUILD_FLAGS --verbose"
fi
+ if [ -z "$ACLOCAL_PATH" ]; then
+ ACLOCAL_PATH="/usr/local/share/aclocal $ACLOCAL_PATH"
+ fi
+
if [[ -z "$WARNINGS" ]]; then
if [[ -n "$VCS_CHECKOUT" ]]; then
WARNINGS="all,error"
;;
'snapshot')
;;
+ 'mingw')
+ ;;
+ 'universe')
+ ;;
'valgrind')
;;
'jenkins')
make
run_configure
;;
+ 'mingw')
+ make_for_mingw32
+ ;;
'snapshot')
make_for_snapshot
;;
'valgrind')
make_valgrind
;;
+ 'universe')
+ make_universe
+ ;;
'jenkins')
make_for_continuus_integration
;;