set_tag.sh
765 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
60
61
#!/bin/sh
if [ $# -eq 0 ]; then
echo "No arguments supplied, exiting script"
echo "Please provide tag name as input parameter"
exit 0
fi
function fetch_settag {
git fetch --all
git reset HEAD --hard
git checkout $1
}
cd ..
fetch_settag $1
cd src/wp-content/themes/participacao-tema
fetch_settag $1
cd ../pensandoodireito-tema
fetch_settag $1
cd ../marcocivil-tema
fetch_settag $1
cd ../dadospessoais-tema
fetch_settag $1
cd ../debatepublico-tema
fetch_settag $1
cd ../blog-tema
fetch_settag $1
cd ../../plugins/pensandoodireito-network-functions
fetch_settag $1
cd ../wp-side-comments
fetch_settag $1
cd ../delibera
fetch_settag $1
echo "Rodando o Gulp para 'compilar' os arquivos Less"
cd ../../
./node_modules/.bin/gulp