Merge pull request #4080 from dachary/wip-11157-dumpling

doc,tests: force checkout of submodules

Reviewed-by: David Zafman <dzafman@redhat.com>
This commit is contained in:
Loic Dachary 2015-03-23 17:44:12 +01:00
commit e5b6eea91c

View File

@ -11,6 +11,15 @@ check_for_pkg_config() {
exit 1
}
if test -d ".git" ; then
force=$(if git submodule usage 2>&1 | grep --quiet 'update.*--force'; then echo --force ; fi)
if ! git submodule sync || ! git submodule update $force --init --recursive; then
echo "Error: could not initialize submodule projects"
echo " Network connectivity might be required."
exit 1
fi
fi
rm -f config.cache
aclocal -I m4 --install
check_for_pkg_config