linux-packaging-mono/scripts/update_submodules
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

10 lines
526 B
Plaintext
Executable File

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 -d .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