Commit 64b7a579 authored by Leigh Stoller's avatar Leigh Stoller

When PROTOGENI is defined, look for an out of sync protogeni/rspec-geni,

which is a submodule. Bail if out of sync.

This will most certainly annoy Jon, but everyone else should always be
running in sync.
parent fb5fb526
......@@ -7187,6 +7187,20 @@ $as_echo "$as_me: WARNING: protogeni/rspec-geni submodule not intialized yet" >&
echo "Then rerun configure in your object tree"
exit 1;
fi
module_status=`cd $srcdir; git submodule status protogeni/rspec-geni`
if test $? -ne 0; then
{ $as_echo "$as_me:$LINENO: WARNING: Cannot get submodule status for protogeni/rspec-geni" >&5
$as_echo "$as_me: WARNING: Cannot get submodule status for protogeni/rspec-geni" >&2;};
exit 1;
fi
if echo '$module_status' | grep -E '^\+'; then
{ $as_echo "$as_me:$LINENO: WARNING: protogeni/rspec-geni submodule is out of date" >&5
$as_echo "$as_me: WARNING: protogeni/rspec-geni submodule is out of date" >&2;};
echo "Please cd into your source directory and run:"
echo " git submodule update protogeni/rspec-geni"
echo "Then rerun configure in your object tree"
exit 1;
fi
fi
#
......
......@@ -897,6 +897,18 @@ if test "$PROTOGENI_SUPPORT" = "1"; then
echo "Then rerun configure in your object tree"
exit 1;
fi
module_status=`cd $srcdir; git submodule status protogeni/rspec-geni`
if test $? -ne 0; then
AC_MSG_WARN([Cannot get submodule status for protogeni/rspec-geni]);
exit 1;
fi
if echo '$module_status' | grep -E '^\+'; then
AC_MSG_WARN([protogeni/rspec-geni submodule is out of date]);
echo "Please cd into your source directory and run:"
echo " git submodule update protogeni/rspec-geni"
echo "Then rerun configure in your object tree"
exit 1;
fi
fi
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment