summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-04 15:07:23 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-04 15:07:23 -0800
commit472592fe857084d2d0bea814da3c142a102aa34b (patch)
tree7ad1d3d258358cddb86bd6dab5b07138fc3d115f /packaging
parentee0341fd97dd78a87a81788300ced3c60594b756 (diff)
downloadsubsurface-472592fe857084d2d0bea814da3c142a102aa34b.tar.gz
libdc: update MXE build
If the submodule isn't initialized, run git submodule init before running submodule update. Also, ensure that the autotools are set up. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/windows/mxe-based-build.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/packaging/windows/mxe-based-build.sh b/packaging/windows/mxe-based-build.sh
index 824604eec..8ff1ec721 100755
--- a/packaging/windows/mxe-based-build.sh
+++ b/packaging/windows/mxe-based-build.sh
@@ -157,11 +157,18 @@ if [[ ! -d libgit2 || -f build.libgit2 ]] ; then
fi
# libdivecomputer
+# ensure the git submodule is present and the autotools are set up
cd "$BASEDIR"/subsurface
if [ ! -d libdivecomputer/src ] ; then
+ git submodule init
git submodule update --recursive
fi
+if [ ! -f libdivecomputer/configure ] ; then
+ cd libdivecomputer
+ autoreconf --install
+ autoreconf --install
+fi
cd "$BUILDDIR"
if [[ ! -d libdivecomputer || -f build.libdivecomputer ]] ; then