Commit fd9eeb1380473b96c588fe054ff86d0ccecb8235
Exists in
master
and in
1 other branch
Merge pull request #336 from marcoamarelo/issue335
Fix pensandoodireito/participacao-sitebase#335
Showing
1 changed file
with
67 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,67 @@ | @@ -0,0 +1,67 @@ | ||
1 | +#!/bin/bash | ||
2 | + | ||
3 | +BLUE='\033[0;34m' | ||
4 | +RED='\033[0;31m' | ||
5 | +GREEN='\033[0;32m' | ||
6 | +NC='\033[0m' | ||
7 | + | ||
8 | +function repo_info { | ||
9 | + | ||
10 | + echo "Informações para o repositório $1" | ||
11 | + | ||
12 | + branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p') | ||
13 | + | ||
14 | + modified=`git ls-files -m` | ||
15 | + | ||
16 | + printf "Branch: $GREEN$branch$NC\n" | ||
17 | + | ||
18 | + if [ "$modified" == "" ]; then | ||
19 | + printf "${BLUE}Sem alterações$NC\n" | ||
20 | + else | ||
21 | + printf "Atenção, existem arquivos modificados neste repositório!!!!" | ||
22 | + printf "\n\n$RED$modified$NC\n\n" | ||
23 | + fi | ||
24 | + | ||
25 | + printf "\n--------------------------------------------\n" | ||
26 | +} | ||
27 | + | ||
28 | +cd .. | ||
29 | + | ||
30 | +repo_info participacao-sitebase | ||
31 | + | ||
32 | +cd src/wp-content/themes/participacao-tema | ||
33 | + | ||
34 | +repo_info participacao-tema | ||
35 | + | ||
36 | +cd ../pensandoodireito-tema | ||
37 | + | ||
38 | +repo_info pensandoodireito-tema | ||
39 | + | ||
40 | +cd ../marcocivil-tema | ||
41 | + | ||
42 | +repo_info marcocivil-tema | ||
43 | + | ||
44 | +cd ../dadospessoais-tema | ||
45 | + | ||
46 | +repo_info dadospessoais-tema | ||
47 | + | ||
48 | +cd ../debatepublico-tema | ||
49 | + | ||
50 | +repo_info debatepublico-tema | ||
51 | + | ||
52 | +cd ../blog-tema | ||
53 | + | ||
54 | +repo_info blog-tema | ||
55 | + | ||
56 | +cd ../../plugins/pensandoodireito-network-functions | ||
57 | + | ||
58 | +repo_info pensandoodireito-network-functions | ||
59 | + | ||
60 | +cd ../wp-side-comments | ||
61 | + | ||
62 | +repo_info wp-side-comments | ||
63 | + | ||
64 | +cd ../delibera | ||
65 | + | ||
66 | +repo_info delibera | ||
67 | + |