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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2017-01-27 17:18:23 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2017-01-27 17:19:01 +0300
commita16103f4b4f068edab2b92dbdceffafd7e1aed88 (patch)
tree5fecad41007ed4024e156738f4fd33d76d9a43fc /scripts/update_submodules.sh
parentb112f67c45df967a7de039c64b7841d8826047b7 (diff)
Add .sh extension to update_submodules so it gets correct line ending
It'd not be recognized as a shell file so it'd get CRLF line endings on Windows which doesn't work. Also added a shebang. Also remove get-cygwin-deps.sh, it is long outdated. Correct instructions are on the Mono website.
Diffstat (limited to 'scripts/update_submodules.sh')
-rwxr-xr-xscripts/update_submodules.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/update_submodules.sh b/scripts/update_submodules.sh
new file mode 100755
index 00000000000..83ec6d392ac
--- /dev/null
+++ b/scripts/update_submodules.sh
@@ -0,0 +1,10 @@
+#!/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 -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
+