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
1
Merge Requests
1
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
9bd7bf6c
Commit
9bd7bf6c
authored
Mar 07, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmbs/rpmlog/rpmgs: use version_to_tag for git tag names
parent
a0c425d3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
7 deletions
+13
-7
rpmbs
bin/rpmbs
+5
-4
rpmgs
bin/rpmgs
+2
-1
rpmlog
bin/rpmlog
+6
-2
No files found.
bin/rpmbs
View file @
9bd7bf6c
...
...
@@ -122,19 +122,20 @@ LISTRPMARGS=$@
__gear_create_tag
()
{
local
GEARCTAG
=
gear-create-tag
local
TAGNAME
=
"
$(
version_to_tag
"
$VERSION
-
$RELEASE
"
)
"
if
[
"
$1
"
=
"pipe"
]
;
then
shift
if
[
-n
"
$SETTAG
"
]
;
then
a
=
git tag
$FORCE
"
$
VERSION
-
$RELEAS
E
"
-m
"
$BASENAME
$VERSION
-
$RELEASE
"
"
$@
"
2>&1
a
=
git tag
$FORCE
"
$
TAGNAM
E
"
-m
"
$BASENAME
$VERSION
-
$RELEASE
"
"
$@
"
2>&1
return
fi
$GEARCTAG
$FORCE
-n
"
$
VERSION
-
$RELEAS
E
"
-m
"
$BASENAME
$VERSION
-
$RELEASE
"
"
$@
"
2>&1
$GEARCTAG
$FORCE
-n
"
$
TAGNAM
E
"
-m
"
$BASENAME
$VERSION
-
$RELEASE
"
"
$@
"
2>&1
else
if
[
-n
"
$SETTAG
"
]
;
then
docmd git tag
$FORCE
"
$
VERSION
-
$RELEAS
E
"
-m
"
$BASENAME
$VERSION
-
$RELEASE
"
"
$@
"
docmd git tag
$FORCE
"
$
TAGNAM
E
"
-m
"
$BASENAME
$VERSION
-
$RELEASE
"
"
$@
"
return
fi
docmd
$GEARCTAG
$FORCE
-n
"
$
VERSION
-
$RELEAS
E
"
-m
"
$BASENAME
$VERSION
-
$RELEASE
"
"
$@
"
docmd
$GEARCTAG
$FORCE
-n
"
$
TAGNAM
E
"
-m
"
$BASENAME
$VERSION
-
$RELEASE
"
"
$@
"
fi
}
...
...
bin/rpmgs
View file @
9bd7bf6c
...
...
@@ -382,10 +382,11 @@ get_tag_by_version()
fi
local
i
local
encoded
=
"
$(
version_to_tag
"
$GSSETVERSION
"
)
"
alternate_tag1
=
"
$(
echo
"v
$GSSETVERSION
"
|
sed
-e
"s|
\.
|-|g"
)
"
alternate_tag2
=
"
$(
echo
"REL_
$GSSETVERSION
"
|
sed
-e
"s|
\.
|_|g"
)
"
alternate_tag3
=
"
$(
echo
"version_
$GSSETVERSION
"
)
"
for
i
in
v
$GSSETVERSION
$alternate_tag1
$GSSETVERSION
$alternate_tag2
$alternate_tag3
;
do
for
i
in
v
$GSSETVERSION
v
$encoded
$alternate_tag1
$GSSETVERSION
$encoded
$alternate_tag2
$alternate_tag3
;
do
git rev-parse
$i
>
/dev/null 2>/dev/null
&&
rc
=
0
&&
break
done
...
...
bin/rpmlog
View file @
9bd7bf6c
...
...
@@ -138,8 +138,12 @@ if [ -z "$FROMTAG" ] ; then
build_rpms_name
$SPECNAME
[
-n
"
$VERSION
"
]
||
fatal
"Can't get package version"
[
-n
"
$RELEASE
"
]
||
fatal
"Can't get package release"
FROMTAG
=
"
$VERSION
-
$RELEASE
"
# FIXME: if don't exists, use last tag?
FROMTAG
=
"
$(
version_to_tag
"
$VERSION
-
$RELEASE
"
)
"
# If tag doesn't exist, find the commit that introduced current version-release
if
!
git rev-parse
--verify
"
$FROMTAG
"
>
/dev/null 2>&1
;
then
FROMTAG
=
$(
git log
--format
=
%H
-1
-S
"
$VERSION
-
$RELEASE
"
--
"
$SPECNAME
"
)
[
-n
"
$FROMTAG
"
]
||
fatal
"Can't find tag or commit for
$VERSION
-
$RELEASE
"
fi
fi
if
[
-z
"
$CHANGELOGADD
"
]
&&
is_last_commit_tag
;
then
...
...
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