Commit d05dfe0ab771d9ee9791f986c521e7118b64cc2f
1 parent
b8a6532d
Exists in
master
and in
3 other branches
inclusão do script para atualizar a master de todos os repositórios
Showing
1 changed file
with
49 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,49 @@ | @@ -0,0 +1,49 @@ | ||
1 | +#!/bin/bash | ||
2 | + | ||
3 | +function update_master { | ||
4 | + | ||
5 | + branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p') | ||
6 | + | ||
7 | + git stash | ||
8 | + | ||
9 | + git checkout master | ||
10 | + | ||
11 | + git pull https://github.com/pensandoodireito/$1.git master | ||
12 | + | ||
13 | + git checkout $branch | ||
14 | + | ||
15 | + git stash pop | ||
16 | +} | ||
17 | + | ||
18 | +cd .. | ||
19 | + | ||
20 | +update_master participacao-sitebase $1 | ||
21 | + | ||
22 | +cd src/wp-content/themes/participacao-tema | ||
23 | + | ||
24 | +update_master participacao-tema $1 | ||
25 | + | ||
26 | +cd ../pensandoodireito-tema | ||
27 | + | ||
28 | +update_master pensandoodireito-tema $1 | ||
29 | + | ||
30 | +cd ../marcocivil-tema | ||
31 | + | ||
32 | +update_master marcocivil-tema $1 | ||
33 | + | ||
34 | +cd ../dadospessoais-tema | ||
35 | + | ||
36 | +update_master dadospessoais-tema $1 | ||
37 | + | ||
38 | +cd ../../plugins/pensandoodireito-network-functions | ||
39 | + | ||
40 | +update_master pensandoodireito-network-functions $1 | ||
41 | + | ||
42 | +cd ../wp-side-comments | ||
43 | + | ||
44 | +update_master wp-side-comments $1 | ||
45 | + | ||
46 | +cd ../delibera | ||
47 | + | ||
48 | +update_master delibera $1 | ||
49 | + |