Modify the get_version.sh script

This commit is contained in:
antao 2018-12-31 00:03:44 +08:00
parent e55f819e3d
commit 5f0dd36bd6
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/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}'` MD5=`git log|head -1|awk '{printf $2}'`
TMP_FILE=/tmp/version TMP_FILE=/tmp/version
echo "#define VERSION \"0.9.11.$GIT_VER\"" > ${TMP_FILE} echo "#define VERSION \"0.9.11.$GIT_VER\"" > ${TMP_FILE}