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
4b67d25f
Commit
4b67d25f
authored
Jan 12, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix write version in rpmrb/rpmgs
parent
c05834f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
rpmgs
bin/rpmgs
+3
-1
rpmrb
bin/rpmrb
+4
-2
No files found.
bin/rpmgs
View file @
4b67d25f
...
...
@@ -190,6 +190,8 @@ fi
test
-z
"
$LISTNAMES
"
&&
print_error
[
-z
"
$GSSETRELEASE
"
]
||
GSSKIPADDCHANGELOG
=
1
for
i
in
$LISTNAMES
do
if
[
-n
"
${
i
/*spec/
}
"
]
;
then
...
...
@@ -201,7 +203,7 @@ do
CURVER
=
$(
get_version
$i
)
set_version
$i
$GSSETVERSION
if
[
"
$CURVER
"
!=
"
$GSSETVERSION
"
]
;
then
[
-n
"
$GSSETRELEASE
"
]
&&
GSSKIPADDCHANGELOG
=
1
||
GSSETRELEASE
=
alt1
[
-n
"
$GSSETRELEASE
"
]
||
GSSETRELEASE
=
alt1
set_release
$i
$GSSETRELEASE
echo
"Set new
$GSSETVERSION
-
$GSSETRELEASE
version for
$i
"
else
...
...
bin/rpmrb
View file @
4b67d25f
...
...
@@ -10,6 +10,7 @@
# load common functions, compatible with local and installed script
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod spec
REMOTE
=
if
[
"
$1
"
=
"-r"
]
;
then
...
...
@@ -21,6 +22,8 @@ SPEC=$1
VER
=
$2
# need for rpmgs
GSSETRELEASE
=
$3
test
-n
"
$GSSETRELEASE
"
||
GSSETRELEASE
=
alt1
export
GSSETRELEASE
if
[
"
$1
"
=
"-h"
]
;
then
echo
"rpmrb spec [vermajor][.verminor] [rel] - update spec to vermajor.verminor version, build %rel release"
...
...
@@ -29,9 +32,8 @@ fi
test
-e
"
$SPEC
"
||
fatal
"use with spec"
test
-n
"
$REL
"
||
REL
=
alt1
rpmgs
$SPEC
$VER
||
fatal
"Error with get source"
add_changelog_helper
"- new version
$
VER
(with rpmrb script)"
$SPEC
||
echog
"Changelog entry already exists"
add_changelog_helper
"- new version
$
(
get_version
$SPEC
)
(with rpmrb script)"
$SPEC
||
echog
"Changelog entry already exists"
rpmbsh
$REMOTE
-i
$SPEC
||
fatal
"Error with build in hasher"
rpmbs
-u
$SPEC
||
fatal
"Error with upload"
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