Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
55176110
Commit
55176110
authored
May 13, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve tests for spec release
parent
fe926bc8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
decrement_release.sh
tests/decrement_release.sh
+2
-0
get_release.sh
tests/get_release.sh
+16
-2
No files found.
tests/decrement_release.sh
View file @
55176110
...
@@ -18,3 +18,5 @@ check_dec 39.1 38
...
@@ -18,3 +18,5 @@ check_dec 39.1 38
check_dec 39cvs 38
check_dec 39cvs 38
check_dec 39.1cvs 38
check_dec 39.1cvs 38
check_dec cvs 0
check_dec cvs 0
check_dec 0 0
check_dec 25.r101.1 24
tests/get_release.sh
View file @
55176110
...
@@ -28,7 +28,7 @@ get_mn_fromspec()
...
@@ -28,7 +28,7 @@ get_mn_fromspec()
#MAJOR=`echo "$BASERELEASE" | sed -e "s|^\([0-9a-zA-Z]*\)\..*|\1|"`
#MAJOR=`echo "$BASERELEASE" | sed -e "s|^\([0-9a-zA-Z]*\)\..*|\1|"`
#MAJOR=`echo "$BASERELEASE" | sed -e "s|^\([0-9a-zA-Z]*\)\..*|\1|"`
#MAJOR=`echo "$BASERELEASE" | sed -e "s|^\([0-9a-zA-Z]*\)\..*|\1|"`
MINOR
=
`
echo
"
$BASERELEASE
"
|
sed
-e
"s|.*
\.
||"
`
MINOR
=
`
echo
"
$BASERELEASE
"
|
sed
-e
"s|.*
\.
||"
`
if
[
"
$
#
if [ "$
}
}
TESTREL
=
alt2
TESTREL
=
alt2
...
@@ -61,6 +61,13 @@ check get_numrelease 3.1 `get_numrelease`
...
@@ -61,6 +61,13 @@ check get_numrelease 3.1 `get_numrelease`
TESTREL
=
alt4.2
TESTREL
=
alt4.2
check get_txtrelease alt
`
get_txtrelease
`
check get_txtrelease alt
`
get_txtrelease
`
# release N.N
TESTREL
=
alt3.r3003.1
check get_numrelease 3.r3003.1
`
get_numrelease
`
TESTREL
=
alt4.r3003.2
check get_txtrelease alt
`
get_txtrelease
`
BASERELEASE
=
27.5
BASERELEASE
=
27.5
get_mn_fromspec
get_mn_fromspec
check MAJOR 27
$MAJOR
check MAJOR 27
$MAJOR
...
@@ -76,9 +83,16 @@ get_mn_fromspec
...
@@ -76,9 +83,16 @@ get_mn_fromspec
check MAJOR 27.5
$MAJOR
check MAJOR 27.5
$MAJOR
check MINOR r12002
$MINOR
check MINOR r12002
$MINOR
BASERELEASE
=
27.r12002.1
get_mn_fromspec
check MAJOR 27
$MAJOR
check MINOR r12002.1
$MINOR
BASERELEASE
=
27.5.2
BASERELEASE
=
27.5.2
get_mn_fromspec
get_mn_fromspec
check MAJOR 27.5
$MAJOR
check MAJOR 27.5
$MAJOR
check MINOR 2
$MINOR
check MINOR 2
$MINOR
# from rpmbh:
# General rule: alwars alt(N-1).MM.(N)
set_release
$SPECNAME
$(
get_txtrelease
$SPECNAME
)$(
decrement_release
$BASERELEASE
)
.
$MDISTR
.
$BASERELEASE
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment