summaryrefslogtreecommitdiff
path: root/documentation/run.sh
blob: 10093505de1ca327b72e969a523be00e7e045603 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

RTT_PATH=$(realpath $(dirname $0)/..)
RTT_DOC_PATH=$RTT_PATH/documentation

rm -rf $RTT_DOC_PATH/html

cd $RTT_DOC_PATH
doxygen ./Doxyfile
if [ $? -ne 0 ]; then
    echo ""
    echo "OOPS: Something error/warning occurred during Doxygen building, please check it out!"
    echo ""
    exit 1
fi

pushd $RTT_DOC_PATH/html
python3 -m http.server