Welcome to mirror list, hosted at ThFree Co, Russian Federation.

update_submodules.sh « scripts - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: db456bdf4d98b6795f417f9e296a3cd7dd7125fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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

if ! test -e external/corefx/README.md; then
	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."
	exit 1
fi