linux-packaging-mono/scripts/update_submodules.sh
Xamarin Public Jenkins (auto-signing) 19234507ba Imported Upstream version 5.14.0.78
Former-commit-id: 3494343bcc9ddb42b36b82dd9ae7b69e85e0229f
2018-05-10 08:37:03 +00:00

11 lines
536 B
Bash
Executable File

#!/bin/sh
SUBMODULE_ERROR='Could not recursively update all git submodules. You may experience compilation problems if some submodules are out of date'
SUBMODULE_OK='Git submodules updated successfully'
if test -e .git; then \
(git submodule update --init --recursive && echo $SUBMODULE_OK) \
|| (git submodule init && git submodule update --recursive && echo $SUBMODULE_OK) \
|| (git submodule init && git submodule update && echo $SUBMODULE_ERROR) \
|| (echo 'Git submodules could not be updated. Compilation will fail') \
fi