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
14292c89
Commit
14292c89
authored
Apr 24, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmbsh: add -w for build via gear --hasher and make src.rpm in hasher (ALT bug #31673)
parent
47c8ca02
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
rpmbsh
bin/rpmbsh
+15
-14
No files found.
bin/rpmbsh
View file @
14292c89
...
...
@@ -37,13 +37,15 @@ phelp()
echog
" -s sign (and move to dir ETERDESTSRPM if defined) after build"
echog
" -t make temporary commit before build (rpmbb like behavior)"
echog
" -l lazy cleanup (clean before build, not after)"
echog
" -w build with gear --hasher myhsh directly"
echog
" -b REPONAME binary repository name (4.1, p5, t6 and so on)"
}
while
getopts
:hitb: opt
;
do
while
getopts
:hit
w
b: opt
;
do
case
$opt
in
h
)
phelp
;
exit
0
;;
t
)
COMMIT
=
"--commit"
;;
w
)
THOROUGH
=
1
;;
i
)
INSTALLPKG
=
1
;;
b
)
BINARYREPONAME
=
$OPTARG
;;
+?
)
echog
"
$name
: options should not be preceded by a '+'."
1>&2
;
exit
2
;;
...
...
@@ -80,21 +82,20 @@ if estrlist has spec "$LISTNAMES" ; then
add_changelog_helper
"- new version"
$LISTNAMES
fi
# We do not not pass args for myhsh here...
# FIXME: не обрабатывает два пропускаемых вместе параметра
pack_src_rpm
$COMMIT
$(
drop_args
"
$LISTRPMARGS
"
s u c l f a A
)
# TODO: use gear --hasher directly, drop myhsh
# use later for is_gear
if
rhas
"
$LISTNAMES
"
.spec
;
then
set_specdir
$LISTNAMES
if
[
-n
"
$THOROUGH
"
]
;
then
# TODO: use gear --hasher for fix macro problem (https://bugzilla.altlinux.org/show_bug.cgi?id=31673)
docmd
time
gear
--hasher
--
$ETERBUILDBIN
/myhsh
$MENVARG
$(
drop_args
"
$LISTRPMARGS
"
f u a A
)
$LISTBUILT
exit
else
# We do not not pass args for myhsh here...
# FIXME: не обрабатывает два пропускаемых вместе параметра
pack_src_rpm
$COMMIT
$(
drop_args
"
$LISTRPMARGS
"
s u c l f a A
)
# build in hasher
docmd
time
$ETERBUILDBIN
/myhsh
$MENVARG
$(
drop_args
"
$LISTRPMARGS
"
f u a A
)
$LISTBUILT
RESULT
=
$?
fi
# build in hasher
docmd
time
$ETERBUILDBIN
/myhsh
$MENVARG
$(
drop_args
"
$LISTRPMARGS
"
f u a A
)
$LISTBUILT
RESULT
=
$?
# if ok and requested test install, do it
if
[
"
$RESULT
"
=
"0"
]
&&
[
-n
"
$INSTALLPKG
"
]
;
then
BINPACKAGES
=
$(
$ETERBUILDBIN
/myhsh
-b
$LISTBUILT
| estrlist reg_exclude debuginfo -
)
||
fatal
"Can't get binary packages for
$LISTBUILT
"
...
...
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