mastodonpp/build_doc.sh
tastytea 1d3275e429
All checks were successful
continuous-integration/drone/push Build is passing
Add documentation.
2020-01-03 11:27:32 +01:00

12 lines
305 B
Bash
Executable File

#!/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