summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-20 23:49:44 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-20 23:49:44 +0300
commit75265aea655b9fd377cc29d1351768562da77439 (patch)
tree7843b13a8daede4567eec751847b8d87666bb2b0
parent8b3a228195e32f72ca57b09f05332fcde30b387a (diff)
downloadall-75265aea655b9fd377cc29d1351768562da77439.tar.gz
all-75265aea655b9fd377cc29d1351768562da77439.tar.bz2
all-75265aea655b9fd377cc29d1351768562da77439.tar.xz
all-75265aea655b9fd377cc29d1351768562da77439.zip
Move group name into variable.s20160708s20160706s20160703s20160630
-rwxr-xr-xinit.sh49
1 files changed, 25 insertions, 24 deletions
diff --git a/init.sh b/init.sh
index 7f4fb53..b8e721c 100755
--- a/init.sh
+++ b/init.sh
@@ -1,6 +1,7 @@
#!/bin/bash
export LANG=C
+export GROUP=evol
CMD="$1"
PROTO="git@gitlab.com:"
@@ -14,44 +15,44 @@ if [[ -n "${STR}" ]]; then
fi
if [[ "${CMD}" == "all" || "${CMD}" == "default" ]]; then
- git clone ${PROTO}evol/clientdata.git client-data
- git clone ${PROTO}evol/hercules.git server-code
- git clone ${PROTO}evol/serverdata.git server-data
- git clone ${PROTO}evol/evol-tools.git tools
- git clone ${PROTO}evol/evol-hercules.git server-code/src/evol
- git clone ${PROTO}evol/evol-local.git server-local
- git clone ${PROTO}evol/evol-docs.git docs
+ git clone ${PROTO}${GROUP}/clientdata.git client-data
+ git clone ${PROTO}${GROUP}/hercules.git server-code
+ git clone ${PROTO}${GROUP}/serverdata.git server-data
+ git clone ${PROTO}${GROUP}/evol-tools.git tools
+ git clone ${PROTO}${GROUP}/evol-hercules.git server-code/src/evol
+ git clone ${PROTO}${GROUP}/evol-local.git server-local
+ git clone ${PROTO}${GROUP}/evol-docs.git docs
ln -s server-code/src/evol server-plugin
elif [[ "${CMD}" == "server" ]]; then
- git clone ${PROTO}evol/hercules.git server-code
- git clone ${PROTO}evol/serverdata.git server-data
- git clone ${PROTO}evol/evol-hercules.git server-code/src/evol
- git clone ${PROTO}evol/evol-tools.git tools
+ git clone ${PROTO}${GROUP}/hercules.git server-code
+ git clone ${PROTO}${GROUP}/serverdata.git server-data
+ git clone ${PROTO}${GROUP}/evol-hercules.git server-code/src/evol
+ git clone ${PROTO}${GROUP}/evol-tools.git tools
ln -s server-code/src/evol server-plugin
elif [[ "${CMD}" == "client" ]]; then
- git clone ${PROTO}evol/clientdata.git client-data
- git clone ${PROTO}evol/evol-tools.git tools
+ git clone ${PROTO}${GROUP}/clientdata.git client-data
+ git clone ${PROTO}${GROUP}/evol-tools.git tools
elif [[ "${CMD}" == "music" ]]; then
- git clone ${PROTO}evol/evol-music.git music
+ git clone ${PROTO}${GROUP}/evol-music.git music
elif [[ "${CMD}" == "local" ]]; then
- git clone ${PROTO}evol/evol-local.git server-local
- git clone ${PROTO}evol/hercules.git server-code
- git clone ${PROTO}evol/serverdata.git server-data
- git clone ${PROTO}evol/evol-hercules.git server-code/src/evol
- git clone ${PROTO}evol/evol-tools.git tools
+ git clone ${PROTO}${GROUP}/evol-local.git server-local
+ git clone ${PROTO}${GROUP}/hercules.git server-code
+ git clone ${PROTO}${GROUP}/serverdata.git server-data
+ git clone ${PROTO}${GROUP}/evol-hercules.git server-code/src/evol
+ git clone ${PROTO}${GROUP}/evol-tools.git tools
ln -s server-code/src/evol server-plugin
elif [[ "${CMD}" == "tools" ]]; then
- git clone ${PROTO}evol/evol-tools.git tools
+ git clone ${PROTO}${GROUP}/evol-tools.git tools
elif [[ "${CMD}" == "docs" ]]; then
- git clone ${PROTO}evol/evol-docs.git docs
+ git clone ${PROTO}${GROUP}/evol-docs.git docs
elif [[ "${CMD}" == "manaplus" ]]; then
git clone ${PROTO}manaplus/manaplus.git manaplus
elif [[ "${CMD}" == "media" ]]; then
- git clone ${PROTO}evol/evol-media.git media
+ git clone ${PROTO}${GROUP}/evol-media.git media
fi
if [[ "${CMD}" == "all" ]]; then
- git clone ${PROTO}evol/evol-music.git music
+ git clone ${PROTO}${GROUP}/evol-music.git music
git clone ${PROTO}manaplus/manaplus.git manaplus
- git clone ${PROTO}evol/evol-media.git media
+ git clone ${PROTO}${GROUP}/evol-media.git media
fi