forked from ringcentral/jagger8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_docu.sh
executable file
·28 lines (22 loc) · 952 Bytes
/
make_docu.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
#!/bin/bash
# Required software:
# 1. Graphviz package (version 2.26.3 or higher) : http://www.graphviz.org/Download_linux_rhel.php
# 2. Doxygen (version 1.8.4 or higher): http://www.stack.nl/~dimitri/doxygen/download.html
# 3. xsddoc (version 1.0): http://nixbit.com/cat//documentation/xsddoc/
version=$1
# set version - don't change text (doxygen will use it)
echo "Version: $version"
if [ ! -z "$version" ]; then
echo "Version: $version" > ./doc/setup/JaggerVersion.txt
fi
# xsd schema
rm -r ./doc/html/xsd/*.*
xsddoc -q -t "Jagger XML schema" -o ./doc/html/xsd/ ./chassis/spring.schema/src/main/resources/config-schema.xsd
# main docu
rm `ls ./doc/html/*.* | grep -v "header.html" | grep -v "tab-panel.css" | grep -v "tab-panel.js"`
doxygen ./doc/setup/Doxyfile
# copy docu for later usage by gh-pages branch script
if [ ! -z "$version" ]; then
echo "Docu copy for version '$version' is created"
cp -r ./doc/html ./doc_$version
fi