libdc: get the submodule for Travis CI / Windows MXE

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-12-03 11:52:48 -08:00
parent dd20c2004d
commit 3368b89336

View file

@ -36,16 +36,10 @@ CURRENT_HIDAPI="hidapi-0.7.0"
CURRENT_LIBUSB="v1.0.21"
CURRENT_LIBGIT2="v0.26.0"
#this will soon be a git submodule
# make sure we have libdivecomputer
echo "Get libdivecomputer"
cd ${TRAVIS_BUILD_DIR}/..
git clone -b Subsurface-branch https://github.com/Subsurface-divelog/libdc.git libdivecomputer
cd libdivecomputer
if [ ! -f ./configure ] ; then
autoreconf --install .
autoreconf --install . # not a typo - somehow/sometimes libdivecomputer needs to run this twice. Don't ask.
fi
cd ${TRAVIS_BUILD_DIR}
git submodule update --recursive
echo "Get libusb"
cd ${TRAVIS_BUILD_DIR}/..