mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-13 00:58:14 +01:00
Fix setversion for 4.4 dot releases
This commit is contained in:
parent
4917ddee38
commit
f88de91dd9
@ -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##*-}
|
||||||
|
Loading…
Reference in New Issue
Block a user