-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclone-all.sh
executable file
·57 lines (50 loc) · 1.21 KB
/
clone-all.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
47
48
49
50
51
52
53
54
55
#!/bin/bash
#
# Checks out all VC3 projects to ~git
#
# PROJECT LISTS, EDIT THESE
sdccprojects="sdcc-pluginmanager"
vc3projects="cheroot credible vc3-infoservice vc3-master vc3-resource-tool vc3-client vc3-playbooks example-configurations vc3-builder vc3-wrappers vc3-factory-plugins vc3-website-python vc3-deployment-infrastructure"
#
# EDITTING BELOW SHOULD NOT BE NEEDED
#
gitdir=~/git
mkdir -p $gitdir
cd $gitdir
vc3root="https://github.com/vc3-project"
sdccroot="https://github.com/bnl-sdcc"
for p in $sdccprojects ; do
if [ -d "$p" ] ; then
echo "$gitdir/$p already exists. Pulling..."
cd $p
git pull
cd ..
else
repo="${sdccroot}/${p}.git"
echo $repo
git clone $repo
fi
done
for p in $vc3projects ; do
if [ -d "$p" ] ; then
echo "$gitdir/$p already exists. Pulling..."
cd $p
git pull
cd ..
else
repo="${vc3root}/${p}.git"
echo $repo
git clone $repo
fi
done
p="autopyfactory"
if [ -d "$p" ] ; then
echo "$gitdir/$p already exists. Pulling..."
cd $p
git pull
cd ..
else
repo="https://github.com/PanDAWMS/autopyfactory.git"
echo $repo
git clone $repo
fi