forked from EnviroDIY/ModularSensors
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild-install-doxygen.sh
61 lines (45 loc) · 1.73 KB
/
build-install-doxygen.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
#!/bin/bash
# Makes the bash script print out every command before it is executed, except echo
trap '[[ $BASH_COMMAND != echo* ]] && echo $BASH_COMMAND' DEBUG
# Exit with nonzero exit code if anything fails
set -e
# install all the dependencies for make for Doxygen and m.css
sudo apt-get update
sudo apt-get -y install build-essential
sudo apt-get -y install flex
sudo apt-get -y install bison
# install TeX Live for LaTeX formula rendering
sudo apt-get -y install texlive-base
sudo apt-get -y install texlive-latex-extra
sudo apt-get -y install texlive-fonts-extra
sudo apt-get -y install texlive-fonts-recommended
echo "\e[32m\n\n\nCurrent TeX version...\e[0m"
tex --version
echo "\n\n\n"
# install Graphviz for DOT class diagrams
sudo apt-get -y install graphviz
echo "\e[32m\n\n\nCurrent graphviz version...\e[0m"
dot -v
echo "\n\n\n"
cd $GITHUB_WORKSPACE
if [ ! -f $GITHUB_WORKSPACE/doxygen-src/build/bin/doxygen ]; then
# Build instructions from: https://www.stack.nl/~dimitri/doxygen/download.html
echo "\e[32mCloning doxygen repository...\e[0m"
git clone https://github.com/doxygen/doxygen.git doxygen-src --branch $DOXYGEN_VERSION --depth 1
cd doxygen-src
echo "\e[32mCreate build folder...\e[0m"
mkdir build
cd build
echo "\e[32mMake...\e[0m"
cmake -G "Unix Makefiles" ..
make
echo "\e[32mDone building doxygen.\e[0m"
echo "\e[32mdoxygen path: \e[0m" $(pwd)
fi
echo "\e[32m\n\n\nCurrent Doxygen version...\e[0m"
$GITHUB_WORKSPACE/doxygen-src/build/bin/doxygen -v
echo "\n\n\n"
# echo "\e[32mMove Doxygen to working directory"
# cp $GITHUB_WORKSPACE/doxygen-src/build/bin/* $GITHUB_WORKSPACE/code_docs/ModularSensors
# #make install
cd $GITHUB_WORKSPACE/code_docs/ModularSensors