Commit e7b48c4b9a45513f850f64ab65519eefca8aff20
1 parent
df8550fd
Exists in
master
and in
1 other branch
script para listar todos os repositórios do projeto e verificar alterações
Showing
1 changed file
with
67 additions
and
0 deletions
Show diff stats
... | ... | @@ -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 | + | ... | ... |