X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=version.sh;fp=version.sh;h=9439702c45b4538c57110011c28a748bf727cae2;hb=b875aa64ce1e416347af55cac7326ab72456eb68;hp=37b9908fa9ccae005135c84684de9e6647b7ee64;hpb=e9a6bd75f7203790a256d2cfb8838f2c06404410;p=x264 diff --git a/version.sh b/version.sh index 37b9908f..9439702c 100755 --- a/version.sh +++ b/version.sh @@ -1,14 +1,14 @@ #!/bin/sh -git-rev-list HEAD | sort > config.git-hash +git rev-list HEAD | sort > config.git-hash LOCALVER=`wc -l config.git-hash | awk '{print $1}'` if [ $LOCALVER \> 1 ] ; then - VER=`git-rev-list origin/master | sort | join config.git-hash - | wc -l | awk '{print $1}'` + VER=`git rev-list origin/master | sort | join config.git-hash - | wc -l | awk '{print $1}'` if [ $VER != $LOCALVER ] ; then VER="$VER+$(($LOCALVER-$VER))" - elif git-status | grep -q "modified:" ; then + elif git status | grep -q "modified:" ; then VER="${VER}M" fi - VER="$VER $(git-rev-list HEAD -n 1 | head -c 7)" + VER="$VER $(git rev-list HEAD -n 1 | head -c 7)" echo "#define X264_VERSION \" r$VER\"" >> config.h else echo "#define X264_VERSION \"\"" >> config.h