summaryrefslogtreecommitdiffstats
path: root/build_doc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build_doc.sh')
-rwxr-xr-xbuild_doc.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/build_doc.sh b/build_doc.sh
new file mode 100755
index 0000000..40b1371
--- /dev/null
+++ b/build_doc.sh
@@ -0,0 +1,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