diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-02-02 02:21:01 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-02 07:04:14 +0300 |
commit | aa2c75e9adb0de813c656a3d3ac7ab10336333b5 (patch) | |
tree | e14ac47816875982e863432f5227ed5ddc8cf889 /doc/doxy-wrapper.sh | |
parent | 103e4c58633f210d7c3203cae121ba5b5123afa6 (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-x | doc/doxy-wrapper.sh | 7 |
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 |