]> git.sesse.net Git - x264/blob - version.sh
pkg-config: major.minor.patch version
[x264] / version.sh
1 #!/bin/sh
2 VER=`svnversion .`
3 if [ "x$VER" != x -a "$VER" != exported ]
4 then
5   echo "#define X264_VERSION \" svn-$VER\"" > config.h
6   API=`grep '#define X264_BUILD' < x264.h | grep -o '[1-9][0-9]*\>'`
7   VER=`echo $VER | grep -o '^[0-9]*'`
8   echo "#define X264_POINTVER \"0.$API.$VER\"" >> config.h
9 else
10   echo "#define X264_VERSION \"\"" > config.h
11   echo "#define X264_POINTVER \"\"" >> config.h
12 fi