]> git.sesse.net Git - x264/blobdiff - version.sh
compile fix for GCC-3.3 on OSX, based on a patch by
[x264] / version.sh
index f302be4544fa7c1674d9b9f3bf6c1b367b2ea740..a91c48bc0119aa9a84ca0ebf709d65aff1e93800 100755 (executable)
@@ -2,11 +2,11 @@
 VER=`svnversion .`
 if [ "x$VER" != x -a "$VER" != exported ]
 then
-  echo "#define X264_VERSION \" svn-$VER\"" > config.h
-  API=`grep '#define X264_BUILD' < x264.h | sed -e 's/.* \([1-9][0-9]*\).*/\1/'`
+  echo "#define X264_VERSION \" svn-$VER\"" >> config.h
   VER=`echo $VER | sed -e 's/[^0-9].*//'`
-  echo "#define X264_POINTVER \"0.$API.$VER\"" >> config.h
 else
-  echo "#define X264_VERSION \"\"" > config.h
-  echo "#define X264_POINTVER \"\"" >> config.h
+  echo "#define X264_VERSION \"\"" >> config.h
+  VER="x"
 fi
+API=`grep '#define X264_BUILD' < x264.h | sed -e 's/.* \([1-9][0-9]*\).*/\1/'`
+echo "#define X264_POINTVER \"0.$API.$VER\"" >> config.h