mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
Ensure Eigen is installed as submodule
This commit is contained in:
@@ -74,6 +74,28 @@ else
|
|||||||
git submodule update;
|
git submodule update;
|
||||||
fi
|
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 ]
|
if [ -d Tools/gencpp ]
|
||||||
then
|
then
|
||||||
STATUSRETVAL=$(git submodule summary | grep -A20 -i gencpp | grep "<")
|
STATUSRETVAL=$(git submodule summary | grep -A20 -i gencpp | grep "<")
|
||||||
|
|||||||
Reference in New Issue
Block a user