doc/formats: get fflags values up-to-date
[ffmpeg.git] / doc / doxy-wrapper.sh
old mode 100644 (file)
new mode 100755 (executable)
index da464bc..fe0102b
@@ -1,12 +1,21 @@
 #!/bin/sh
 
-SRC_PATH="${1}"
+OUT_DIR="${1}"
 DOXYFILE="${2}"
+DOXYGEN="${3}"
 
-shift 2
+shift 3
 
-doxygen - <<EOF
+if [ -e "VERSION" ]; then
+    VERSION=`cat "VERSION"`
+else
+    VERSION=`git describe`
+fi
+
+$DOXYGEN - <<EOF
 @INCLUDE        = ${DOXYFILE}
 INPUT           = $@
-EXAMPLE_PATH    = ${SRC_PATH}/
+HTML_TIMESTAMP  = NO
+PROJECT_NUMBER  = $VERSION
+OUTPUT_DIRECTORY = $OUT_DIR
 EOF