-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathload
More file actions
executable file
·38 lines (25 loc) · 781 Bytes
/
load
File metadata and controls
executable file
·38 lines (25 loc) · 781 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
##Esse script é responsável por carregar a documentação gerada
##no doxygen para o github. Ele tbm tira os '_' das páginas geradas
##pelo doxygen.
#!/bin/bash
mkdir _temp
SPACE=$(pwd)
cp -r ./doc/html/* -t ./_temp/
cd _temp/
#Tira os '_' na frente dos nomes dos arquivos, para que o
#jekyll possa processar de forma correta.
for j in $(ls -1 _*); do
string=${j#"_"}
grep -rl $j ./ | xargs sed -i "s/$j/$string/g"
mv $j $string
done
cd $SPACE
#Deleta conteúdo atual da pasta html (onde esta o branch gh-pages), e copia a documentação.
rm -r ../html/robot/CmdMessenger/*
cp -r ./_temp/* -t ../html/robot/CmdMessenger
cd ../html/robot/
git add CmdMessenger/
git commit -m "automatically loaded documentation"
git push origin gh-pages
cd $SPACE
rm -r _temp