-
Notifications
You must be signed in to change notification settings - Fork 4
/
updatewebpage_auto.sh
96 lines (77 loc) · 3.38 KB
/
updatewebpage_auto.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Run Doxygen GUI to generate the documentation output
# doxygen ./docs/Doxyfile :to generate doxy docs
# git checkout -f gh-pages :to get rid of all local changes.
# current directory is: gh-page branch, i.e., /Users/bulent/Documents/workspace/iceace/FLAME/html
cd /Users/bulent/Documents/AWorkspace/iceace/FLAME/html
git rm ./doxy/*.map
git rm ./doxy/*.md5
git rm ./doxy/*.png
git rm ./doxy/*.html
git rm ./doxy/*.pdf
git rm ./doxy/*.js
git rm ./doxy/*.css
git rm ./doxy/*
echo "Files remained under ./doxy/ :"
ls ./doxy
git commit -a -m "Removing old code documentation related files."
git push origin gh-pages
mv -f ../docs/html/*.map ./doxy/
mv -f ../docs/html/*.md5 ./doxy/
mv -f ../docs/html/*.png ./doxy/
mv -f ../docs/html/*.html ./doxy/
mv -f ../docs/html/*.js ./doxy/
mv -f ../docs/html/*.css ./doxy/
mv -f ../docs/html/* ./doxy/
# For new files:
git add ./doxy/*.map
git commit -m "Design documents are updated, reflecting a complete model of a closed economy calibrated for Iceland."
git push origin gh-pages
git add ./doxy/*.md5
git commit -m "Design documents are updated, reflecting a complete model of a closed economy calibrated for Iceland."
git push origin gh-pages
git add ./doxy/*.png
git commit -m "Design documents are updated, reflecting a complete model of a closed economy calibrated for Iceland."
git push origin gh-pages
git add ./doxy/*.html
git commit -m "Design documents are updated, reflecting a complete model of a closed economy calibrated for Iceland."
git push origin gh-pages
git add ./doxy/*.js
git commit -m "Design documents are updated, reflecting a complete model of a closed economy calibrated for Iceland."
git push origin gh-pages
git add ./doxy/*
git commit -m "Design documents are updated, reflecting a complete model of a closed economy calibrated for Iceland."
git push origin gh-pages
git add ./doxy/*.map
git commit -m "Design documents are updated, reflecting a complete model of a closed economy calibrated for Iceland."
git push origin gh-pages
# Linking doxy site to github pages.
sed 's|ICEACE Documentation|<a href="http://iceace.github.com/FLAME/"> Click this link to access main site of ICEACE. <p>The site provides general information and points to software downloads on FLAME implementation.</p></a>|' ./doxy/index.html > ./doxy/newindex.html
mv ./doxy/newindex.html ./doxy/index.html
git commit -a -m "Design documents are updated, reflecting a newer implementation."
git push origin gh-pages
# Insertion of pdf and state diagrams:
#
#dot -Tpdf ../stategraph.dot -o ./doxy/stategraph.pdf
dot -Tpdf ../stategraph_colour.dot -o ./doxy/stategraph_colour.pdf
#dot -Tpdf ../process_order_graph.dot -o ./doxy/process_order_graph.pdf
git commit -a -m "Adding state graph to list of pdf files."
git push origin gh-pages
cp ../../IceaceModel1.0/latex.tex ./
sed 's|Author names to add|Bulent Ozel - [email protected]|' ./latex.tex > ./newlatex.tex
mv ./newlatex.tex ./latex.tex
#do twice for the table of contents.
pdflatex ../latex.tex
pdflatex ../latex.tex
mv latex.pdf ./doxy/summary.pdf
rm latex.*
git add ./doxy/*.pdf
git commit -a -m "Adding model manual file."
git push origin gh-pages
#cp ./doxy/stategraph.pdf ../docs/
#cp ./doxy/stategraph_colour.pdf ../docs/
#cp ./doxy/summary.pdf ../docs/
#cp ./doxy/process_order_graph.pdf ../docs/
#cd ..
#git commit -a -m "Design documents are updated, reflecting a newer implementation."
#git push origin master
#cd ./html