Merge commit 'ac981d16415e7fd99683e10297781c7d9ec1a8cd'
[ffmpeg.git] / doc / doxy-wrapper.sh
1 #!/bin/sh
2
3 SRC_PATH="${1}"
4 DOXYFILE="${2}"
5 DOXYGEN="${3}"
6
7 shift 3
8
9 if [ -e "$SRC_PATH/VERSION" ]; then
10     VERSION=`cat "$SRC_PATH/VERSION"`
11 else
12     VERSION=`cd "$SRC_PATH"; git describe`
13 fi
14
15 $DOXYGEN - <<EOF
16 @INCLUDE        = ${DOXYFILE}
17 INPUT           = $@
18 EXAMPLE_PATH    = ${SRC_PATH}/doc/examples
19 HTML_TIMESTAMP  = NO
20 PROJECT_NUMBER  = $VERSION
21 EOF