forked from WatershedArts/Footfall
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgetrepos.sh
executable file
·46 lines (38 loc) · 811 Bytes
/
getrepos.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
39
40
41
42
43
44
45
46
#!/bin/sh
# getrepos.sh
#
#
# Created by David Haylock on 21/04/2015.
#
#!/bin/sh
repobase="https://github.com";
repos="orgicus/ofxCvPiCam \
kylemcdonald/ofxCv \
arturoc/ofxHttpUtils \
jefftimesten/ofxJSON \
";
echo "------------------------------";
echo "----> Looking for Addons <----";
# Print the Directory
pwd;
# Cycle through the Repo's Clone if they don't exist
# If they do then Make sure they are upto date
for repo in ${repos};
do
if [ ! -d "${repo}" ]; then
echo "----> Cloning ${repo} <----";
git clone "${repobase}/${repo}.git";
echo "----> Cloned ${repo} <----";
else
echo "----> Pulling ${repo} <----";
# Put us into the addon directory
cd "${repo}";
pwd;
# Pull the latest verison from GitHub
git pull;
# Put us one level up
cd ..;
echo "----> Pulled ${repo} <----";
fi
done
exit;