2011-11-16 20:44:16 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
#
|
|
|
|
|
|
2015-12-16 23:25:36 +01:00
|
|
|
CHECK=check
|
2016-01-16 22:05:44 +01:00
|
|
|
DEBUG=
|
2015-12-16 23:25:36 +01:00
|
|
|
|
|
|
|
|
if test "x$1" = "x-f"; then
|
2017-10-12 22:27:34 +02:00
|
|
|
CHECK=all
|
2015-12-16 23:25:36 +01:00
|
|
|
fi
|
|
|
|
|
|
2016-01-16 22:05:44 +01:00
|
|
|
if test "x$1" = "x-d"; then
|
|
|
|
|
DEBUG=--enable-debug
|
2015-12-16 23:25:36 +01:00
|
|
|
fi
|
|
|
|
|
|
2011-11-16 20:44:16 +01:00
|
|
|
make distclean
|
|
|
|
|
|
2015-11-24 19:34:21 +01:00
|
|
|
# Reconfigure (with force) to get the latest revision from git
|
|
|
|
|
autoreconf -f
|
|
|
|
|
|
2015-12-16 23:25:36 +01:00
|
|
|
if ! ./configure.windows-x86 $DEBUG; then
|
2011-11-16 20:44:16 +01:00
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
2017-10-12 22:27:34 +02:00
|
|
|
if ! make distwindows-x86 distclean; then
|
2015-12-16 23:25:36 +01:00
|
|
|
exit 1
|
2013-09-29 08:20:45 +02:00
|
|
|
fi
|
|
|
|
|
|
2017-10-12 22:27:34 +02:00
|
|
|
if ! ./configure.windows-x64 $DEBUG; then
|
2011-11-16 20:44:16 +01:00
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
2017-10-12 22:27:34 +02:00
|
|
|
if ! make -j4 $CHECK; then
|
2011-11-16 20:44:16 +01:00
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if ! make distwindows-x64 distclean; then
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if ! ./configure ; then
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if ! make dist; then
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|