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_LIBUSB="v1.0.21"
CURRENT_LIBGIT2="v0.26.0" CURRENT_LIBGIT2="v0.26.0"
# make sure we have libdivecomputer
#this will soon be a git submodule
echo "Get libdivecomputer" echo "Get libdivecomputer"
cd ${TRAVIS_BUILD_DIR}/.. cd ${TRAVIS_BUILD_DIR}
git clone -b Subsurface-branch https://github.com/Subsurface-divelog/libdc.git libdivecomputer git submodule update --recursive
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
echo "Get libusb" echo "Get libusb"
cd ${TRAVIS_BUILD_DIR}/.. cd ${TRAVIS_BUILD_DIR}/..