forked from num-codex/codex-develop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitUpdate.sh
65 lines (59 loc) · 1.49 KB
/
gitUpdate.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
56
57
58
59
60
61
62
63
64
#!/bin/bash
gitBase="https://github.com/num-codex/"
repos=("codex-feasibility-gui" "codex-feasibility-backend" "codex-keycloak" "codex-processes-ap2" "codex-aktin-broker" "codex-sq2cql" "num-knoten" "broker" "codex-flare" "odm2fhir" "codex-blaze" "codex-gecco-to-ui-profiles")
baseDir=$(pwd)
echo "****updating base repo Develop****"
git pull
for repoName in ${repos[@]}
do
curRepo="$baseDir/$repoName"
if [ ! -d "$curRepo" ]
then
cd $baseDir
echo "****initialising git repo $repoName****"
git clone "$gitBase$repoName.git"
else
cd $repoName
echo "****updating git repo $repoName****"
git pull
cd ..
fi
done
#gitBase="https://github.com/rwth-imi/"
#repos=("flare-fhir")
#baseDir=$(pwd)
#
#for repoName in ${repos[@]}
#do
# curRepo="$baseDir/$repoName"
# if [ ! -d "$curRepo" ]
# then
# cd $baseDir
# echo "****initialising git repo $repoName****"
# git clone "$gitBase$repoName.git"
# else
# cd $repoName
# echo "****updating git repo $repoName****"
# git pull
# cd ..
# fi
#done
#gitBase="https://github.com/aktin/"
#repos=("broker")
#baseDir=$(pwd)
#
#for repoName in ${repos[@]}
#do
# curRepo="$baseDir/$repoName"
# if [ ! -d "$curRepo" ]
# then
# cd $baseDir
# echo "****initialising git repo $repoName****"
# git clone "$gitBase$repoName.git"
# else
# cd $repoName
# echo "****updating git repo $repoName****"
# git pull
# cd ..
# fi
#done