]> git.sesse.net Git - x264/commitdiff
Modify version.sh to output to stdout.
authorAlex Jurkiewicz <alex@bluebottle.net.au>
Thu, 20 May 2010 07:01:37 +0000 (15:01 +0800)
committerFiona Glaser <fiona@x264.com>
Fri, 21 May 2010 04:24:18 +0000 (21:24 -0700)
Update configure to match.

configure
version.sh

index d02d2d417fea94ce09645f5ac986e0ed2a48551a..e9e45cd164606e232d3c7fe1a87c992586e575b1 100755 (executable)
--- a/configure
+++ b/configure
@@ -684,7 +684,7 @@ if [ "$shared" = "yes" ]; then
     echo 'default: $(SONAME)' >> config.mak
 fi
 
-./version.sh
+./version.sh >> config.h
 
 pclibs="-L$libdir -lx264 $libpthread"
 
index 03b070b2e6885b5ebe3bf871e2056858038dd649..b7772095bd58b32bd61f86a58129c0ad627d60b2 100755 (executable)
@@ -9,11 +9,11 @@ if [ $LOCALVER \> 1 ] ; then
         VER="${VER}M"
     fi
     VER="$VER $(git rev-list HEAD -n 1 | cut -c 1-7)"
-    echo "#define X264_VERSION \" r$VER\"" >> config.h
+    echo "#define X264_VERSION \" r$VER\""
 else
-    echo "#define X264_VERSION \"\"" >> config.h
+    echo "#define X264_VERSION \"\""
     VER="x"
 fi
 rm -f config.git-hash
 API=`grep '#define X264_BUILD' < x264.h | sed -e 's/.* \([1-9][0-9]*\).*/\1/'`
-echo "#define X264_POINTVER \"0.$API.$VER\"" >> config.h
+echo "#define X264_POINTVER \"0.$API.$VER\""