autogen.sh: only set up submodules if we have a .git directory

This way we do the right thing for tarball builds.
This commit is contained in:
Colin Walters 2013-06-20 12:04:01 -04:00 committed by Dan Williams
parent 0b07a5301e
commit 805fc3a864

View file

@ -19,9 +19,11 @@ PKG_NAME=NetworkManager
cd $srcdir
# Fetch submodules if needed
echo "+ Setting up submodules"
git submodule init
git submodule update
if test -d $srcdir/.git; then
echo "+ Setting up submodules"
git submodule init
git submodule update
fi
gtkdocize || exit 1
autopoint --force