Commit a3d25a49 authored by Vitaly Lipatov's avatar Vitaly Lipatov

spec: fix inc_release for 2.2 numbers

parent cfb55cb5
......@@ -64,7 +64,8 @@ set_release()
inc_release()
{
local BASERELEASE=$(get_numrelease "$1")
set_release "$1" $(get_txtrelease "$1")$(($BASERELEASE + 1 ))
local MAJOR=`echo "$BASERELEASE" | sed -e "s|\..*||"`
set_release "$1" $(get_txtrelease "$1")$(($MAJOR + 1 ))
}
# inc 2.x to 2.(x+1) or 2 to 2.1
......
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