diff --git a/tool/travis.sh b/tool/travis.sh index 0436f67f1..4babe06ec 100755 --- a/tool/travis.sh +++ b/tool/travis.sh @@ -148,13 +148,13 @@ create_apidoc() { ## increment the version number based on the last tag. incremented_version() { - local major_version=`echo -e "${last_tag}" | sed "s/^\(.*\)\\.[0-9]\+\.[0-9]\+-alpha.*$/\1/"` - local minor_version=`echo -e "${last_tag}" | sed "s/^[0-9]\+\.\(.*\)\.[0-9]\+-alpha.*$/\1/"` - local patch_version=`echo -e "${last_tag}" | sed "s/^[0-9]\+\.[0-9]\+\.\(.*\)-alpha.*$/\1/"` + local major_version=`echo -e "${last_tag}" | sed "s/^\(.*\)\\.[0-9]\+\.[0-9]\+@.*$/\1/"` + local minor_version=`echo -e "${last_tag}" | sed "s/^[0-9]\+\.\(.*\)\.[0-9]\+@.*$/\1/"` + local patch_version=`echo -e "${last_tag}" | sed "s/^[0-9]\+\.[0-9]\+\.\(.*\)@.*$/\1/"` local new_patch_version=$((patch_version+1)) - local new_version="$major_version.$minor_version.$new_patch_version-alpha@latest" + local new_version="$major_version.$minor_version.$new_patch_version@latest" echo $new_version }