diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-11 22:42:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-11 22:42:22 +0300 |
commit | ed19798d36d9fb8e08588bfb32d652424c8f0ae2 (patch) | |
tree | b3395a94af464a651e7e1c4913007bd913a95adf | |
parent | ae2bbd3b3fd127d5d3a0a03224c2cc664ec81b46 (diff) | |
download | all-s20171023.tar.gz all-s20171023.tar.bz2 all-s20171023.tar.xz all-s20171023.zip |
init.sh: clone new repositories into upstream remote.s20171226s20171129s20171107s20171023s20170925s20170918
-rwxr-xr-x | init.sh | 56 |
1 files changed, 30 insertions, 26 deletions
@@ -14,45 +14,49 @@ if [[ -n "${STR}" ]]; then export PROTO="https://gitlab.com/" fi +CLONECMD="git clone --origin upstream" +CLONE1="${CLONECMD} ${PROTO}${GROUP}" +CLONE2="${CLONECMD} ${PROTO}" + if [[ "${CMD}" == "all" || "${CMD}" == "default" ]]; then - 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 + ${CLONE1}/clientdata.git client-data + ${CLONE1}/hercules.git server-code + ${CLONE1}/serverdata.git server-data + ${CLONE1}/evol-tools.git tools + ${CLONE1}/evol-hercules.git server-code/src/evol + ${CLONE1}/evol-local.git server-local + ${CLONE1}/evol-docs.git docs ln -s server-code/src/evol server-plugin elif [[ "${CMD}" == "server" ]]; then - 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 + ${CLONE1}/hercules.git server-code + ${CLONE1}/serverdata.git server-data + ${CLONE1}/evol-hercules.git server-code/src/evol + ${CLONE1}/evol-tools.git tools ln -s server-code/src/evol server-plugin elif [[ "${CMD}" == "client" ]]; then - git clone ${PROTO}${GROUP}/clientdata.git client-data - git clone ${PROTO}${GROUP}/evol-tools.git tools + ${CLONE1}/clientdata.git client-data + ${CLONE1}/evol-tools.git tools elif [[ "${CMD}" == "music" ]]; then - git clone ${PROTO}${GROUP}/evol-music.git music + ${CLONE1}/evol-music.git music elif [[ "${CMD}" == "local" ]]; then - 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 + ${CLONE1}/evol-local.git server-local + ${CLONE1}/hercules.git server-code + ${CLONE1}/serverdata.git server-data + ${CLONE1}/evol-hercules.git server-code/src/evol + ${CLONE1}/evol-tools.git tools ln -s server-code/src/evol server-plugin elif [[ "${CMD}" == "tools" ]]; then - git clone ${PROTO}${GROUP}/evol-tools.git tools + ${CLONE1}/evol-tools.git tools elif [[ "${CMD}" == "docs" ]]; then - git clone ${PROTO}${GROUP}/evol-docs.git docs + ${CLONE1}/evol-docs.git docs elif [[ "${CMD}" == "manaplus" ]]; then - git clone ${PROTO}manaplus/manaplus.git manaplus + ${CLONE2}manaplus/manaplus.git manaplus elif [[ "${CMD}" == "media" ]]; then - git clone ${PROTO}${GROUP}/evol-media.git media + ${CLONE1}/evol-media.git media fi if [[ "${CMD}" == "all" ]]; then - git clone ${PROTO}${GROUP}/evol-music.git music - git clone ${PROTO}manaplus/manaplus.git manaplus - git clone ${PROTO}${GROUP}/evol-media.git media + ${CLONE1}/evol-music.git music + ${CLONE2}manaplus/manaplus.git manaplus + ${CLONE1}/evol-media.git media fi |