aboutsummaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2015-02-17 18:23:41 -0800
committerJosh Haberman <jhaberman@gmail.com>2015-02-17 18:23:41 -0800
commitcb3caf1e61126fd18fa63e2a0e91bf71ab4ac3c9 (patch)
treee7e5dd284e2384dfaf1f8eff0eb2f3feab944872 /autogen.sh
parentf473bb9903370cc9324b0881873e0d0861f5d325 (diff)
downloadprotobuf-cb3caf1e61126fd18fa63e2a0e91bf71ab4ac3c9.tar.gz
protobuf-cb3caf1e61126fd18fa63e2a0e91bf71ab4ac3c9.tar.bz2
protobuf-cb3caf1e61126fd18fa63e2a0e91bf71ab4ac3c9.zip
Integrate changes from Google open-source branch.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/autogen.sh b/autogen.sh
index c18474bf..1e97a72a 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -15,6 +15,12 @@ __EOF__
exit 1
fi
+if test -e .git; then
+ # pull down git submodules.
+ git submodule init
+ git submodule update
+fi
+
# Check that gtest is present. Usually it is already there since the
# directory is set up as an SVN external.
if test ! -e gtest; then
@@ -39,9 +45,5 @@ sed -i -e 's/RuntimeLibrary="5"/RuntimeLibrary="3"/g;
# TODO(kenton): Remove the ",no-obsolete" part and fix the resulting warnings.
autoreconf -f -i -Wall,no-obsolete
-# pull down git submodules.
-git submodule init
-git submodule update
-
rm -rf autom4te.cache config.h.in~
exit 0