Fix setversion for 4.4 dot releases

This commit is contained in:
Tom Eastep 2009-08-13 12:46:34 -07:00
parent 4917ddee38
commit f88de91dd9

View File

@ -30,11 +30,15 @@ VERSION=$1
SUFFIX= SUFFIX=
case $VERSION in case $VERSION in
*.*.*.*) 4.[02].*.*)
RPMVERSION=${VERSION%.*} RPMVERSION=${VERSION%.*}
RELEASE=${VERSION##*.} RELEASE=${VERSION##*.}
SUFFIX="-$RELEASE" SUFFIX="-$RELEASE"
;; ;;
4.*.*.*)
RPMVERSION=${VERSION%.*}
RELEASE=${VERSION##*.}
;;
*-*) *-*)
RPMVERSION=${VERSION%-*} RPMVERSION=${VERSION%-*}
RELEASE=0${VERSION##*-} RELEASE=0${VERSION##*-}