update_masters.sh
890 Bytes
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
#!/bin/bash
function update_master {
echo "Atualizando $1"
branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
git stash
git checkout master
git pull https://github.com/pensandoodireito/$1.git master
git checkout $branch
git stash pop
}
cd ..
update_master participacao-sitebase $1
cd src/wp-content/themes/participacao-tema
update_master participacao-tema $1
cd ../pensandoodireito-tema
update_master pensandoodireito-tema $1
cd ../marcocivil-tema
update_master marcocivil-tema $1
cd ../dadospessoais-tema
update_master dadospessoais-tema $1
cd ../debatepublico-tema
update_master debatepublico-tema $1
cd ../blog-tema
update_master blog-tema $1
cd ../../plugins/pensandoodireito-network-functions
update_master pensandoodireito-network-functions $1
cd ../wp-side-comments
update_master wp-side-comments $1
cd ../delibera
update_master delibera $1