|
@ -20,7 +20,7 @@ then |
|
|
echo -e "Please commit all changes in repository\n" |
|
|
echo -e "Please commit all changes in repository\n" |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
VERSION_PREVIOUS=`sed -n '4,4p' CHANGELOG.md | cut -d "(" -f1` |
|
|
|
|
|
|
|
|
VERSION_PREVIOUS=`sed -n '4,4p' CHANGELOG.md | cut -d "(" -f1 | tr -d ' '` |
|
|
if [ `git rev-parse ${VERSION_PREVIOUS}` != `git rev-parse HEAD` ] |
|
|
if [ `git rev-parse ${VERSION_PREVIOUS}` != `git rev-parse HEAD` ] |
|
|
then |
|
|
then |
|
|
VERSION=`echo ${VERSION_PREVIOUS} | awk -F. -v OFS=. 'NF==1{print ++$NF}; NF>1{if(length($NF+1)>length($NF))$(NF-1)++; $NF=sprintf("%0*d", length($NF), ($NF+1)%(10^length($NF))); print}'` |
|
|
VERSION=`echo ${VERSION_PREVIOUS} | awk -F. -v OFS=. 'NF==1{print ++$NF}; NF>1{if(length($NF+1)>length($NF))$(NF-1)++; $NF=sprintf("%0*d", length($NF), ($NF+1)%(10^length($NF))); print}'` |
|
|