[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / scripts / update_submodules.sh
blobdb456bdf4d98b6795f417f9e296a3cd7dd7125fe
1 #!/bin/sh
2 SUBMODULE_ERROR='Could not recursively update all git submodules. You may experience compilation problems if some submodules are out of date'
3 SUBMODULE_OK='Git submodules updated successfully'
4 if test -e .git; then \
5 (git submodule update --init --recursive && echo $SUBMODULE_OK) \
6 || (git submodule init && git submodule update --recursive && echo $SUBMODULE_OK) \
7 || (git submodule init && git submodule update && echo $SUBMODULE_ERROR) \
8 || (echo 'Git submodules could not be updated. Compilation will fail') \
9 fi
11 if ! test -e external/corefx/README.md; then
12 echo "Error: Couldn't find the required submodules. This usually happens when using an archive from GitHub instead of https://download.mono-project.com/sources/mono/, or something went wrong while updating submodules."
13 exit 1