summaryrefslogtreecommitdiff
path: root/doc/doxy-wrapper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'doc/doxy-wrapper.sh')
-rwxr-xr-xdoc/doxy-wrapper.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/doxy-wrapper.sh b/doc/doxy-wrapper.sh
index bbdb9097b7..9720e54030 100755
--- a/doc/doxy-wrapper.sh
+++ b/doc/doxy-wrapper.sh
@@ -6,9 +6,16 @@ DOXYGEN="${3}"
shift 3
+if [ -e "$SRC_PATH/VERSION" ]; then
+ VERSION=`cat "$SRC_PATH/VERSION"`
+else
+ VERSION=`cd "$SRC_PATH"; git describe`
+fi
+
$DOXYGEN - <<EOF
@INCLUDE = ${DOXYFILE}
INPUT = $@
EXAMPLE_PATH = ${SRC_PATH}/doc/examples
HTML_TIMESTAMP = NO
+PROJECT_NUMBER = $VERSION
EOF