-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_doc.sh
executable file
·79 lines (69 loc) · 2.26 KB
/
make_doc.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
#! /bin/sh
#====================================================================
# A few helper functions
#====================================================================
# An small function 'borrowed' from the oomph-lib installation
# script...
OptionPrompt()
{
printf "%s " "$1"
}
# Another small function 'borrowed' from the oomph-lib installation
# script...
OptionRead()
{
read Opt
if test "$Opt" = "" ; then
Opt=$1
fi
echo $Opt
}
#====================================================================
# Variables
#====================================================================
build_dir=build
doc_dir=doc
doc_doxy_dir=doxy_doc
# The name of the library
lib_name=cellular_automata
#====================================================================
# The building script
#====================================================================
echo " "
echo "============================================================= "
echo " "$lib_name" make doc script"
echo "============================================================= "
echo " "
echo ""
echo "============================================================= "
echo ""
echo "I am going to create the documentation"
echo ""
echo "============================================================= "
echo ""
#====================================================================
# Check whether the doc folder exists
#====================================================================
if (test -d $doc_dir/$doc_doxy_dir); then
echo "Cleaning up ..."
rm -r $doc_dir/$doc_doxy_dir/*
echo "Done"
else
mkdir $doc_dir/$doc_doxy_dir
fi
echo ""
#====================================================================
# Calling doxygen
#====================================================================
echo "============================================================= "
echo "I am going to run doxygen ..."
echo "============================================================= "
echo ""
# Go one folder up since we did a cd into ./build
doxygen ./tools/doxyfile.config
echo ""
echo "============================================================= "
echo "[Done] doxygen"
echo "============================================================= "
echo ""
echo "The documentation is in the $doc_dir/$doc_doxy_dir folder"