ffmpeg | branch: master | Andreas Cadhalpun <andreas.cadhal...@googlemail.com> | Mon Feb 2 00:21:01 2015 +0100| [aa2c75e9adb0de813c656a3d3ac7ab10336333b5] | committer: Michael Niedermayer
doc/doxy-wrapper.sh: autodetect version Signed-off-by: Andreas Cadhalpun <andreas.cadhal...@googlemail.com> Signed-off-by: Michael Niedermayer <michae...@gmx.at> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=aa2c75e9adb0de813c656a3d3ac7ab10336333b5 --- doc/doxy-wrapper.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/doxy-wrapper.sh b/doc/doxy-wrapper.sh index bbdb909..9720e54 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 _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog