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
8b43c2ed
Commit
8b43c2ed
authored
Apr 02, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add git tag checking
parent
64c810ae
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
rpmbs
bin/rpmbs
+5
-3
No files found.
bin/rpmbs
View file @
8b43c2ed
...
...
@@ -91,6 +91,7 @@ check_gear_and_tag()
local
RESULT
=
0
local
GEARCTAG
=
gear-create-tag
test
-n
"
$TAG
"
&&
echo
"Create
$TAG
tag..."
# FIXME: uncomment use-agent in ~/.gnupg/gpg.conf, but with ssh access to build server I got
# gpg: problem with the agent - disabling agent use
# gpg: Invalid passphrase; please try again ...
...
...
@@ -105,7 +106,9 @@ check_gear_and_tag()
if
is_gear
$SPECDIR
;
then
# needed correct user.name/user.email for get GPG id
pushd
$SPECDIR
>
/dev/null
# default: <VERSION>-<RELEASE>
$GEARCTAG
$FORCE
||
RESULT
=
1
test
-z
"
$TAG
"
||
git tag
-v
"
$TAG
"
||
fatal
"Tag
$TAG
is missed in repo"
popd
>
/dev/null
fi
return
$RESULT
...
...
@@ -178,8 +181,7 @@ if [ -n "$UPLOADNOW" ] && is_gear $SPECDIR ; then
build_rpms_name
"
$LISTNAMES
"
pkg_release_check
TAG
=
$VERSION
-
$RELEASE
echo
"Create
$TAG
tag..."
check_gear_and_tag
# || fatal "Can't make tag"
check_gear_and_tag
"
$TAG
"
# || fatal "Can't make tag"
$ETERBUILDBIN
/gpush
$GIRARHOST
||
fatal
"Git push via gpush failed. Possibly you need to run ginit for create remote repo."
echo
echo
"Run build
$BASENAME
at
$GIRARHOST
"
...
...
@@ -231,7 +233,7 @@ pkg_release_check $LISTBUILT
# if only one file
if
[
-r
"
$LISTBUILT
"
]
;
then
check_gear_and_tag
check_gear_and_tag
""
fi
...
...
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