mirror of
https://gitlab.com/shorewall/code.git
synced 2025-08-18 04:35:33 +02:00
Fix setversion for 4.4 dot releases
This commit is contained in:
@@ -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##*-}
|
||||
|
Reference in New Issue
Block a user