diff --git a/tools/build/setversion b/tools/build/setversion index f41c53031..097d74043 100755 --- a/tools/build/setversion +++ b/tools/build/setversion @@ -30,11 +30,15 @@ VERSION=$1 SUFFIX= case $VERSION in - *.*.*.*) + 4.[02].*.*) RPMVERSION=${VERSION%.*} RELEASE=${VERSION##*.} SUFFIX="-$RELEASE" ;; + 4.*.*.*) + RPMVERSION=${VERSION%.*} + RELEASE=${VERSION##*.} + ;; *-*) RPMVERSION=${VERSION%-*} RELEASE=0${VERSION##*-}