summaryrefslogtreecommitdiff
path: root/doc/doxy-wrapper.sh
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-02-02 00:21:01 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-02 05:04:14 +0100
commitaa2c75e9adb0de813c656a3d3ac7ab10336333b5 (patch)
treee14ac47816875982e863432f5227ed5ddc8cf889 /doc/doxy-wrapper.sh
parent103e4c58633f210d7c3203cae121ba5b5123afa6 (diff)
doc/doxy-wrapper.sh: autodetect version
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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