From 472592fe857084d2d0bea814da3c142a102aa34b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 4 Dec 2017 15:07:23 -0800 Subject: 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 --- packaging/windows/mxe-based-build.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'packaging') 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 -- cgit v1.2.3-70-g09d2