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
16f29d06
Commit
16f29d06
authored
Jan 15, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add decrement_release function and test for it
parent
fdcb9ad5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
spec
share/eterbuild/functions/spec
+7
-0
decrement_release.sh
tests/decrement_release.sh
+20
-0
No files found.
share/eterbuild/functions/spec
View file @
16f29d06
...
...
@@ -120,6 +120,13 @@ set_version()
fi
}
# decrement release with workaround about non textual release
decrement_release
()
{
local
NUMPART
=
$(
echo
$1
|
sed
-e
"s|[^0-9].*||g"
)
[
-n
"
$NUMPART
"
]
||
NUMPART
=
1
echo
$((
$NUMPART
-
1
))
}
subst_namever
()
{
...
...
tests/decrement_release.sh
0 → 100755
View file @
16f29d06
#!/bin/sh
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod spec
check
()
{
[
"
$2
"
!=
"
$3
"
]
&&
echo
"FATAL with '
$1
': result '
$2
' do not match with '
$3
'"
||
echo
"OK for '
$1
' with '
$2
'"
}
check_dec
()
{
check
$1
`
decrement_release
$1
`
$2
}
check_dec 39 38
check_dec 39.1 38
check_dec 39cvs 38
check_dec 39.1cvs 38
check_dec cvs 0
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