Commit 0e3eace8 authored by mru's avatar mru

prettify lib* version number extraction


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12128 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d975f94a
...@@ -2002,14 +2002,18 @@ if enabled texi2html; then ...@@ -2002,14 +2002,18 @@ if enabled texi2html; then
echo "BUILD_DOC=yes" >> config.mak echo "BUILD_DOC=yes" >> config.mak
fi fi
sws_version=`grep '#define LIBSWSCALE_VERSION ' "$source_path/libswscale/swscale.h" | sed 's/[^0-9\.]//g'` get_version(){
pp_version=`grep '#define LIBPOSTPROC_VERSION ' "$source_path/libpostproc/postprocess.h" | sed 's/[^0-9\.]//g'` name=$1
lavc_version=`grep '#define LIBAVCODEC_VERSION ' "$source_path/libavcodec/avcodec.h" | sed 's/[^0-9\.]//g'` file=$source_path/$2
lavd_version=`grep '#define LIBAVDEVICE_VERSION ' "$source_path/libavdevice/avdevice.h" | sed 's/[^0-9\.]//g'` grep "#define ${name}_VERSION " "$file" | sed 's/[^0-9\.]//g'
lavf_version=`grep '#define LIBAVFORMAT_VERSION ' "$source_path/libavformat/avformat.h" | sed 's/[^0-9\.]//g'` }
lavu_version=`grep '#define LIBAVUTIL_VERSION ' "$source_path/libavutil/avutil.h" | sed 's/[^0-9\.]//g'`
sws_version=$(get_version LIBSWSCALE libswscale/swscale.h)
pp_version=$(get_version LIBPOSTPROC libpostproc/postprocess.h)
lavc_version=$(get_version LIBAVCODEC libavcodec/avcodec.h)
lavd_version=$(get_version LIBAVDEVICE libavdevice/avdevice.h)
lavf_version=$(get_version LIBAVFORMAT libavformat/avformat.h)
lavu_version=$(get_version LIBAVUTIL libavutil/avutil.h)
if enabled shared; then if enabled shared; then
echo "BUILD_SHARED=yes" >> config.mak echo "BUILD_SHARED=yes" >> config.mak
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment