-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathSetup.sh
executable file
·38 lines (35 loc) · 897 Bytes
/
Setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
set -e
echo 'Running'
pushd `dirname $0` > /dev/null
SCRIPT_PATH=`pwd`
popd > /dev/null
remoteRepos=(
"https://github.com/Clancey/SimpleTables.git"
"https://github.com/Clancey/FlyoutNavigation.git"
"https://github.com/Clancey/MonoTouch.Dialog.git"
"https://github.com/Clancey/YoutubeExtractor.git"
"https://github.com/Clancey/taglib-sharp.git"
"https://github.com/Clancey/lastfm-sharp.git")
echo $remoteRepos
#Go back a folder and clone here
cd ..
for gitRepo in "${remoteRepos[@]}"
do
echo $gitRepo
gitPath=$(echo ${gitRepo}|cut -d'/' -f5)
localRepoDir=$(echo $gitPath | sed 's/.git//g')
if [ -d $localRepoDir ]; then
cd $localRepoDir
echo -e "Running in $localRepoDir: \n git pull"
git pull
cd ..
else
cloneCmd="git clone "$gitRepo
echo -e "Running: \n$ $cloneCmd \n"
git clone "$gitRepo"
fi
done
cd FlyoutNavigation
git checkout dialog
cd ..