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
0b603521
Commit
0b603521
authored
Aug 15, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve tests and comments about text release
parent
45058f46
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
spec
share/eterbuild/functions/spec
+4
-0
get_release.sh
tests/get_release.sh
+8
-3
increment_release.sh
tests/increment_release.sh
+9
-0
No files found.
share/eterbuild/functions/spec
View file @
0b603521
...
...
@@ -47,6 +47,7 @@ get_release()
eval_spec
$1
| get_var
"Release"
}
# TODO: fix description
# get 11 from alt11, 12.1 from alt12.1t
get_numpartrelease
()
{
...
...
@@ -67,8 +68,11 @@ get_default_txtrelease()
}
# get alt from alt11
# TODO: support alt1.eter2
# TODO: change to use mask gggNNN gggNNN.NNN gggNNN.NNNggg gggNNN.eeee.MMMM.ffff
get_txtrelease
()
{
# TODO: txtrelease is all exclude num part
get_release
"
$1
"
|
sed
-e
"s|
\(
[a-zA-Z]*
\)\(
[0-9
\.
]
\)
.*|
\1
|"
||
get_default_txtrelease
}
...
...
tests/get_release.sh
View file @
0b603521
...
...
@@ -31,6 +31,8 @@ get_mn_fromspec()
#if [ "$
}
GITHOST
=
alt
TESTREL
=
alt2
check get_release alt2
`
get_release
`
...
...
@@ -77,16 +79,19 @@ check get_numpartrelease 5 `get_numpartrelease $TESTREL`
TESTREL
=
alt3.r3003.1
check get_numpartrelease 3
`
get_numpartrelease
$TESTREL
`
TESTREL
=
alt3.eter50
check get_numpartrelease 3
`
get_numpartrelease
$TESTREL
`
TESTREL
=
eter26.svn724archlinux
check get_numpartrelease 26
`
get_numpartrelease
$TESTREL
`
GI
RAR
HOST
=
git.alt
GI
T
HOST
=
git.alt
check get_default_txtrelease alt
`
get_default_txtrelease
`
GI
RAR
HOST
=
git.eter
GI
T
HOST
=
git.eter
check get_default_txtrelease eter
`
get_default_txtrelease
`
GI
RARHOST
=
git
eter
GI
THOST
=
git.
eter
check get_default_txtrelease eter
`
get_default_txtrelease
`
BASERELEASE
=
27.5
...
...
tests/increment_release.sh
View file @
0b603521
...
...
@@ -50,3 +50,12 @@ check inc_release "alt7" `inc_release ""`
TESTVER
=
1.5.7
check inc_version
"1.5.8"
`
inc_version
""
`
TESTREL
=
alt6.eter51
check inc_release
"alt6.eter52"
`
inc_release
""
`
TESTREL
=
alt5.14f23
check inc_release
"alt6"
`
inc_release
""
`
TESTREL
=
alt4.ff
check inc_release
"alt5"
`
inc_release
""
`
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