]> git.sesse.net Git - x264/blob - version.sh
cli: large file support
[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   VER=`echo $VER | sed -e 's/[^0-9].*//'`
7 else
8   echo "#define X264_VERSION \"\"" >> config.h
9   VER="x"
10 fi
11 API=`grep '#define X264_BUILD' < x264.h | sed -e 's/.* \([1-9][0-9]*\).*/\1/'`
12 echo "#define X264_POINTVER \"0.$API.$VER\"" >> config.h