Modify the get_version.sh script
This commit is contained in:
parent
e55f819e3d
commit
5f0dd36bd6
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue