summaryrefslogtreecommitdiff
path: root/apps/git_tools
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2021-05-04 11:35:24 +0200
committerGitHub <noreply@github.com>2021-05-04 11:35:24 +0200
commitf6c6123d85d467134ee24565c9d98efdfc3a0c41 (patch)
tree2b70863b40601c5f98d2fbe9e8aa51fa150e7ceb /apps/git_tools
parenta1b0c4541762320867aa7e7150c942224c18753d (diff)
feat(docker): production images, integrated ccache and many other improvements (#5551)
Diffstat (limited to 'apps/git_tools')
-rwxr-xr-xapps/git_tools/subrepo-update.sh34
1 files changed, 34 insertions, 0 deletions
diff --git a/apps/git_tools/subrepo-update.sh b/apps/git_tools/subrepo-update.sh
new file mode 100755
index 0000000000..2dd4616f0e
--- /dev/null
+++ b/apps/git_tools/subrepo-update.sh
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+
+#######################
+#
+# README
+#
+# This script is used to automatically update
+# submodules and subrepos included in this project
+# Subrepo are updated in bidirectional way (pull + push)
+# because they are intended to be developed by this organization
+#
+# NOTE: only maintainers and CI should run this script and
+# keep it updated
+#
+#######################
+
+set -e
+ROOT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../../"
+# update all submodules
+git submodule update --init --recursive
+git submodule foreach git pull origin master
+# include libraries for git subrepo
+source "$ROOT_PATH/deps/git-subrepo/.rc"
+source "$ROOT_PATH/deps/acore/bash-lib/src/git-utils/subrepo.sh"
+
+echo "> Pulling and update all subrepos"
+
+subrepoUpdate https://github.com/azerothcore/bash-lib master deps/acore/bash-lib
+
+subrepoUpdate https://github.com/azerothcore/cmake-utils master deps/acore/cmake-utils
+
+subrepoUpdate https://github.com/azerothcore/mysql-tools master deps/acore/mysql-tools
+
+subrepoUpdate https://github.com/azerothcore/joiner master deps/acore/joiner