iOS: build.sh does not run configure for libdivecomputer

In a "virgin" repo incl. libdivecomputer, starting by running
ios/build.sh caused an error in libdivecomputer,
because autoreconf was never run.

Changed build.sh to check if libdivecomputer/configure exist, if
not run autoreconf

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-05-08 11:23:56 +02:00 committed by Dirk Hohndel
parent c67fe97ba1
commit a0030a488a

View file

@ -281,17 +281,18 @@ echo next building for $ARCH
if [ ! -d ../../libdivecomputer/src ] ; then
pushd ../..
git submodule init
git submodule update --recursive
pushd libdivecomputer
autoreconf --install
autoreconf --install
popd
fi
git submodule update --recursive
if [ ! -f ../../libdivecomputer/configure ] ; then
pushd ../../libdivecomputer
autoreconf --install
autoreconf --install
popd
fi
if [ ! -f libdivecomputer-${ARCH}.SHA ] ; then
echo "" > libdivecomputer-${ARCH}.SHA
fi
git submodule update --recursive
CURRENT_SHA=$(cd ../../libdivecomputer ; git describe)
PREVIOUS_SHA=$(cat libdivecomputer-${ARCH}.SHA)
if [ ! "$CURRENT_SHA" = "$PREVIOUS_SHA" ] ; then