Commit 9daaf1eb by Chavee Issariyapat

update to 1.2.0 fix bug commit 0 does not show

parent 580f262f
# a helper shell script # a helper shell script
MAKE_VERSION=1.1.9 MAKE_VERSION=1.2.0
define MAKEFUNCTIONCODE define MAKEFUNCTIONCODE
function hasChanges() { function hasChanges() {
...@@ -15,14 +15,13 @@ define MAKEFUNCTIONCODE ...@@ -15,14 +15,13 @@ define MAKEFUNCTIONCODE
# new use tag from git of the form -> 1.0.1-2-3b10c420 # new use tag from git of the form -> 1.0.1-2-3b10c420
TAGN=$$(git describe | sed -e "s/-g.*//") TAGN=$$(git describe | sed -e "s/-g.*//")
T1=$$(echo $$TAGN | sed -e "s/-.*//") TV=$$(echo $$TAGN | sed -e "s/-.*//")
T2=$$(echo $$TAGN | sed -e "s/^[^\-]*//") TM=$$(echo $$TAGN | sed -e "s/^[^\-]*//")
if [ -z "$$TM" ]
if [ $T2 == "" ]
then then
T2="-0" TM="-0"
fi fi
echo $$T1$$T2 echo $$TV$$TM
} }
function getBaseTag() { function getBaseTag() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment