Ensure Eigen is installed as submodule

This commit is contained in:
Lorenz Meier 2015-03-20 00:00:54 +01:00
parent bb525d68a1
commit 14247d95dd
1 changed files with 22 additions and 0 deletions

View File

@ -74,6 +74,28 @@ else
git submodule update;
fi
if [ -d src/lib/eigen ]
then
STATUSRETVAL=$(git submodule summary | grep -A20 -i eigen | grep "<")
if [ -z "$STATUSRETVAL" ]
then
echo "Checked Eigen submodule, correct version found"
else
echo ""
echo ""
echo "New commits required:"
echo "$(git submodule summary)"
echo ""
echo ""
echo "eigen sub repo not at correct version. Try 'git submodule update'"
echo "or follow instructions on http://pixhawk.org/dev/git/submodules"
exit 1
fi
else
git submodule init;
git submodule update;
fi
if [ -d Tools/gencpp ]
then
STATUSRETVAL=$(git submodule summary | grep -A20 -i gencpp | grep "<")