Commit 7f41cfcedbe9633711708f46a1980c0bdef0af84
1 parent
aa13dc3e
Exists in
master
and in
3 other branches
inclusão de scripts para facilitar a vida
Showing
2 changed files
with
82 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,54 @@ |
1 | +#!/bin/sh | |
2 | + | |
3 | +function gerar_tag_master { | |
4 | + branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p') | |
5 | + | |
6 | + git stash | |
7 | + | |
8 | + git fetch --all | |
9 | + | |
10 | + git checkout master | |
11 | + | |
12 | + git pull https://github.com/pensandoodireito/$1.git master | |
13 | + | |
14 | + git tag -a $2 -m "Tag para sprint $2. Visualize o changelog no github em https://github.com/pensandoodireito/participacao-sitebase" | |
15 | + | |
16 | +# git push git@github.com:pensandoodireito/$1.git --tags | |
17 | + | |
18 | + git push git@github.com:marcoamarelo/$1.git --tags | |
19 | + | |
20 | + git push origin master | |
21 | + | |
22 | + git checkout $branch | |
23 | + | |
24 | + git stash pop | |
25 | +} | |
26 | + | |
27 | +cd .. | |
28 | + | |
29 | +gerar_tag_master participacao-sitebase $1 | |
30 | + | |
31 | +cd src/wp-content/themes/participacao-tema | |
32 | + | |
33 | +gerar_tag_master participacao-tema $1 | |
34 | + | |
35 | +cd ../pensandoodireito-tema | |
36 | + | |
37 | +gerar_tag_master pensandoodireito-tema $1 | |
38 | + | |
39 | +cd ../marcocivil-tema | |
40 | + | |
41 | +gerar_tag_master marcocivil-tema $1 | |
42 | + | |
43 | +cd ../dadospessoais-tema | |
44 | + | |
45 | +gerar_tag_master dadospessoais-tema $1 | |
46 | + | |
47 | +cd ../../plugins/pensandoodireito-network-functions | |
48 | + | |
49 | +gerar_tag_master pensandoodireito-network-functions $1 | |
50 | + | |
51 | +cd ../wp-side-comments | |
52 | + | |
53 | +gerar_tag_master wp-side-comments $1 | |
54 | + | ... | ... |
... | ... | @@ -0,0 +1,28 @@ |
1 | +cd .. | |
2 | + | |
3 | +git checkout $1 | |
4 | + | |
5 | +cd src/wp-content/themes/participacao-tema | |
6 | + | |
7 | +git checkout $1 | |
8 | + | |
9 | +cd ../pensandoodireito-tema | |
10 | + | |
11 | +git checkout $1 | |
12 | + | |
13 | +cd ../marcocivil-tema | |
14 | + | |
15 | +git checkout $1 | |
16 | + | |
17 | +cd ../dadospessoais-tema | |
18 | + | |
19 | +git checkout $1 | |
20 | + | |
21 | +cd ../../plugins/pensandoodireito-network-functions | |
22 | + | |
23 | +git checkout $1 | |
24 | + | |
25 | +cd ../wp-side-comments | |
26 | + | |
27 | +git checkout $1 | |
28 | + | ... | ... |