Skip to content

Commit

Permalink
Merge pull request #4079 from dachary/wip-11157-firefly
Browse files Browse the repository at this point in the history
doc,tests: force checkout of submodules

Reviewed-by: David Zafman <dzafman@redhat.com>
  • Loading branch information
ldachary committed Mar 21, 2015
2 parents 6c95cd2 + cddbff9 commit 15acfe7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions autogen.sh
Expand Up @@ -23,6 +23,15 @@ else
exit 1
fi

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
Expand Down

0 comments on commit 15acfe7

Please sign in to comment.