diff options
Diffstat (limited to 'init.sh')
-rwxr-xr-x | init.sh | 28 |
1 files changed, 22 insertions, 6 deletions
@@ -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 |