summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinit.sh28
1 files changed, 22 insertions, 6 deletions
diff --git a/init.sh b/init.sh
index 676facf..9e0e700 100755
--- a/init.sh
+++ b/init.sh
@@ -1,11 +1,27 @@
#!/bin/bash
-git clone git@gitorious.org:evol/clientdata.git client-data
-git clone git@gitorious.org:evol/hercules.git server-code
-git clone git@gitorious.org:evol/serverdata.git server-data
-git clone git@gitorious.org:evol/evol-tools.git tools
-git clone git@gitorious.org:evol/evol-hercules.git server-code/src/evol
+CMD="$1"
+if [[ -z "${CMD}" ]]; then
+ export CMD="default"
+fi
+
+if [[ "${CMD}" == "all" || "${CMD}" == "default" ]]; then
+ git clone git@gitorious.org:evol/clientdata.git client-data
+ git clone git@gitorious.org:evol/hercules.git server-code
+ git clone git@gitorious.org:evol/serverdata.git server-data
+ git clone git@gitorious.org:evol/evol-tools.git tools
+ git clone git@gitorious.org:evol/evol-hercules.git server-code/src/evol
+elif [[ "${CMD}" == "server" ]]; then
+ git clone git@gitorious.org:evol/hercules.git server-code
+ git clone git@gitorious.org:evol/serverdata.git server-data
+ git clone git@gitorious.org:evol/evol-hercules.git server-code/src/evol
+elif [[ "${CMD}" == "client" ]]; then
+ git clone git@gitorious.org:evol/clientdata.git client-data
+ git clone git@gitorious.org:evol/evol-tools.git tools
+elif [[ "${CMD}" == "music" ]]; then
+ git clone git@gitorious.org:evol/evol-music.git music
+fi
-if [[ "$1" == "all" ]]; then
+if [[ "${CMD}" == "all" ]]; then
git clone git@gitorious.org:evol/evol-music.git music
fi