summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjesusalva <cpntb1@ymail.com>2018-02-08 20:24:20 -0200
committerjesusalva <cpntb1@ymail.com>2018-02-08 20:24:20 -0200
commite6f9af06293804526432db1aa3cda3c52ebae3af (patch)
tree217fe7309a108cc4c27250325dbf68b9c55b083a
parent60df0684f0f9cf7fdd496dc30acdce4f68e2df1a (diff)
downloadall-e6f9af06293804526432db1aa3cda3c52ebae3af.tar.gz
all-e6f9af06293804526432db1aa3cda3c52ebae3af.tar.bz2
all-e6f9af06293804526432db1aa3cda3c52ebae3af.tar.xz
all-e6f9af06293804526432db1aa3cda3c52ebae3af.zip
Update init.sh to take in account we don't have all repos.
-rwxr-xr-xinit.sh18
1 files changed, 10 insertions, 8 deletions
diff --git a/init.sh b/init.sh
index fd1e7d1..b04055d 100755
--- a/init.sh
+++ b/init.sh
@@ -2,6 +2,7 @@
export LANG=C
export GROUP=TMW2
+export ALTER=evol
CMD="$1"
PROTO="git@gitlab.com:"
@@ -17,20 +18,21 @@ fi
CLONECMD="git clone --origin upstream"
CLONE1="${CLONECMD} ${PROTO}${GROUP}"
CLONE2="${CLONECMD} ${PROTO}"
+CLONEA="${CLONECMD} ${PROTO}${ALTER}"
if [[ "${CMD}" == "all" || "${CMD}" == "default" ]]; then
${CLONE1}/clientdata.git client-data
- ${CLONE1}/hercules.git server-code
+ ${CLONEA}/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
+ ${CLONEA}/evol-hercules.git server-code/src/evol
+ ${CLONEA}/evol-local.git server-local # Do this even serves any purpose?
${CLONE1}/Docs.git docs
ln -s server-code/src/evol server-plugin
elif [[ "${CMD}" == "server" ]]; then
- ${CLONE1}/hercules.git server-code
+ ${CLONEA}/hercules.git server-code
${CLONE1}/serverdata.git server-data
- ${CLONE1}/evol-hercules.git server-code/src/evol
+ ${CLONEA}/evol-hercules.git server-code/src/evol
${CLONE1}/evol-tools.git tools
ln -s server-code/src/evol server-plugin
elif [[ "${CMD}" == "client" ]]; then
@@ -39,10 +41,10 @@ elif [[ "${CMD}" == "client" ]]; then
elif [[ "${CMD}" == "music" ]]; then
${CLONE1}/evol-music.git music
elif [[ "${CMD}" == "local" ]]; then
- ${CLONE1}/evol-local.git server-local
- ${CLONE1}/hercules.git server-code
+ ${CLONEA}/evol-local.git server-local
+ ${CLONEA}/hercules.git server-code
${CLONE1}/serverdata.git server-data
- ${CLONE1}/evol-hercules.git server-code/src/evol
+ ${CLONEA}/evol-hercules.git server-code/src/evol
${CLONE1}/evol-tools.git tools
ln -s server-code/src/evol server-plugin
elif [[ "${CMD}" == "tools" ]]; then