Android build: always reconfigure libdivecomputer

This fix makes no difference from usage of this script in Travis
context, as every build starts from a clean VM, but the very few
developers that build for Android locally, and that want to use the new
style docker container builds as well, things are broken.

libdivecomputer has build artifacts in its source tree (and that source
tree is shared between local and docker run). So it happens that
libdivecomputer is configured locally, and afterwards fails to build
in docker build as its already configured, but not for the docker
image its now running in.

The fix is simple. Always reconfigure libdivecomputer when using this
script.

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2018-12-29 08:40:09 +01:00 committed by Dirk Hohndel
parent 6fb135eb46
commit 20c40ea6b4

View file

@ -126,12 +126,12 @@ if [ ! -d subsurface/libdivecomputer/src ] ; then
popd
fi
if [ ! -f subsurface/libdivecomputer/configure ] ; then
pushd subsurface/libdivecomputer
autoreconf --install
autoreconf --install
popd
fi
# always reconfigure here
rm -f subsurface/libdivecomputer/configure
pushd subsurface/libdivecomputer
autoreconf --install --force
autoreconf --install --force
popd
# and now we need a monotonic build number...
if [ ! -f ./buildnr.dat ] ; then