forked from ECALELFS/ECALELF
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmkDoc.sh
executable file
·48 lines (43 loc) · 847 Bytes
/
mkDoc.sh
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
#!/bin/bash
DOCCONF=fulldoc
mainDir=$PWD
docDir=doc/doxygen/${DOCCONF}/
remote="[email protected]:ECALELFS/ECALELF.git"
if [ ! -d "${docDir}" ];then
mkdir -p ${docDir}
fi
if [ ! -d "${docDir}/html" ];then
cd ${docDir}
git clone -b gh-pages $remote html
cd ${mainDir}
else
cd ${docDir}/html
if [ "`git branch | grep -c gh-pages`" == "0" ];then
cd ${mainDir}
rm ${docDir}/html/ -Rf
cd ${docDir}/
git clone -b gh-pages $remote html
cd ${mainDir}
fi
fi
cd ${mainDir}
doxygen ${DOCCONF}
cd ${docDir}/html/
ls
git remote -v
git branch
git pull
git add -A
git add *.html
git add *.css *.js
git add *.gif
git add *.png
git add *.map
git add *.md5
git add *.dot
git add search
git add */*/*.png
git commit -m "updated documentation" -a
git commit -m "updated documentation" -a
git push origin gh-pages:gh-pages
cd -