diff --git a/get_version.sh b/get_version.sh index a7148cf8..18d66041 100755 --- a/get_version.sh +++ b/get_version.sh @@ -1,6 +1,6 @@ #!/bin/sh -GIT_VER=`git log|grep commit|wc -l|sed -e "s/^ *//"` +GIT_VER=`git log|grep ^commit|wc -l|sed -e "s/^ *//"` MD5=`git log|head -1|awk '{printf $2}'` TMP_FILE=/tmp/version echo "#define VERSION \"0.9.11.$GIT_VER\"" > ${TMP_FILE}