summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpackaging/ios/build.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh
index bef6904a2..a6197fbe7 100755
--- a/packaging/ios/build.sh
+++ b/packaging/ios/build.sh
@@ -281,17 +281,18 @@ echo next building for $ARCH
if [ ! -d ../../libdivecomputer/src ] ; then
pushd ../..
git submodule init
- git submodule update --recursive
- pushd libdivecomputer
+ popd
+ fi
+ git submodule update --recursive
+ if [ ! -f ../../libdivecomputer/configure ] ; then
+ pushd ../../libdivecomputer
autoreconf --install
autoreconf --install
popd
- 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