diff options
-rw-r--r-- | packaging/ios/build.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh index 0ebc90e8a..0a53a4076 100644 --- a/packaging/ios/build.sh +++ b/packaging/ios/build.sh @@ -274,7 +274,14 @@ echo next building for $ARCH popd popd fi - if [ ! -e $PKG_CONFIG_LIBDIR/libdivecomputer.pc ] ; then + 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 + echo $CURRENT_SHA > libdivecomputer-${ARCH}.SHA mkdir -p libdivecomputer-build-$ARCH pushd libdivecomputer-build-$ARCH ../../../libdivecomputer/configure --host=${BUILDCHAIN} --prefix=${PREFIX} --enable-static --disable-shared --enable-examples=no --without-libusb --without-hidapi --enable-ble |