Skip to content
Snippets Groups Projects
Commit aa2c75e9 authored by Andreas Cadhalpun's avatar Andreas Cadhalpun Committed by Michael Niedermayer
Browse files

doc/doxy-wrapper.sh: autodetect version

parent 103e4c58
No related branches found
No related tags found
No related merge requests found
...@@ -6,9 +6,16 @@ DOXYGEN="${3}" ...@@ -6,9 +6,16 @@ DOXYGEN="${3}"
shift 3 shift 3
if [ -e "$SRC_PATH/VERSION" ]; then
VERSION=`cat "$SRC_PATH/VERSION"`
else
VERSION=`cd "$SRC_PATH"; git describe`
fi
$DOXYGEN - <<EOF $DOXYGEN - <<EOF
@INCLUDE = ${DOXYFILE} @INCLUDE = ${DOXYFILE}
INPUT = $@ INPUT = $@
EXAMPLE_PATH = ${SRC_PATH}/doc/examples EXAMPLE_PATH = ${SRC_PATH}/doc/examples
HTML_TIMESTAMP = NO HTML_TIMESTAMP = NO
PROJECT_NUMBER = $VERSION
EOF EOF
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment