]> git.sesse.net Git - x264/commitdiff
Make version.sh indicate "M" for local commits too
authorAnton Mitrofanov <BugMaster@narod.ru>
Mon, 7 Jun 2010 21:03:03 +0000 (01:03 +0400)
committerFiona Glaser <fiona@x264.com>
Wed, 9 Jun 2010 18:35:47 +0000 (11:35 -0700)
version.sh

index b7772095bd58b32bd61f86a58129c0ad627d60b2..7f06c7c5f4f7b3205b6460581d5723d23c7514d9 100755 (executable)
@@ -5,7 +5,8 @@ if [ $LOCALVER \> 1 ] ; then
     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
+    fi
+    if git status | grep -q "modified:" ; then
         VER="${VER}M"
     fi
     VER="$VER $(git rev-list HEAD -n 1 | cut -c 1-7)"