1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

doc/doxy-wrapper.sh: autodetect version

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Andreas Cadhalpun 2015-02-02 00:21:01 +01:00 committed by Michael Niedermayer
parent 103e4c5863
commit aa2c75e9ad

View File

@ -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