summaryrefslogtreecommitdiffstats
path: root/build_doc.sh
blob: 40b1371fc37e70b2e7ea2038535c58485c05fd68 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

project="$(realpath --relative-base=.. .)"
version="$(grep -Eo '[0-9]+.[0-9]+.[0-9]+$' CMakeLists.txt)"

if [[ -f Doxyfile ]]; then
    mkdir -p doc
    (doxygen -s -g - && cat Doxyfile &&
         echo "PROJECT_NAME = ${project}" &&
         echo "PROJECT_NUMBER = ${version}") | doxygen -
fi