|
@ -33,9 +33,10 @@ else |
|
|
git_tag= |
|
|
git_tag= |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ ! -z $git_tag ]; then |
|
|
|
|
|
version=${version/-dev} |
|
|
|
|
|
sed -i -e "s@$version-dev@$version@" $version_file |
|
|
|
|
|
|
|
|
if [[ -n $git_tag ]]; then |
|
|
|
|
|
new_version=${version/-*} |
|
|
|
|
|
sed -i -e "s@$version@$new_version@" $version_file |
|
|
|
|
|
version=$new_version |
|
|
trap "git checkout -- $version_file" EXIT |
|
|
trap "git checkout -- $version_file" EXIT |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|