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
803cbbcc
Commit
803cbbcc
authored
Jul 08, 2009
by
Vitaly Lipatov
Committed by
Vitaly Lipatov
Jul 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build with gear --commit only via rpmbb
parent
f22ff190
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
rpmbb
bin/rpmbb
+2
-2
rpm
share/eterbuild/functions/rpm
+7
-1
No files found.
bin/rpmbb
View file @
803cbbcc
...
...
@@ -85,7 +85,7 @@ if [ -n "$BUILDOPT" ] ; then
is_alt
||
fatal
"Sorry, only ALT Linux systems support --short-circuit correctly"
for
it
in
$BUILDOPT
do
uni_rpmbuild
$LISTNAMES
-b
$it
$LISTRPMARGS
--target
$DEFAULTARCH
--short-circuit
uni_rpmbuild
--commit
$LISTNAMES
-b
$it
$LISTRPMARGS
--target
$DEFAULTARCH
--short-circuit
done
exit
0
fi
...
...
@@ -109,7 +109,7 @@ do
LOGFILE
=
"
$LOGDIR
/
`
basename
$NAMESRPMIN
.src.rpm
`
$MENVARG
.log"
echo
"Build in native system"
>
$LOGFILE
rm
-f
$LOGFILE
.failed
(
uni_rpmbuild
$i
-bb
$LISTRPMARGS
$NODEPS
--target
$DEFAULTARCH
2>&1
||
touch
$LOGFILE
.failed
)
|
tee
-a
$LOGFILE
(
uni_rpmbuild
--commit
$i
-bb
$LISTRPMARGS
$NODEPS
--target
$DEFAULTARCH
2>&1
||
touch
$LOGFILE
.failed
)
|
tee
-a
$LOGFILE
[
-r
"
$LOGFILE
.failed"
]
&&
RET
=
1
||
RET
=
0
if
[
"
$RET
"
=
"0"
]
;
then
...
...
share/eterbuild/functions/rpm
View file @
803cbbcc
...
...
@@ -16,6 +16,12 @@ uni_rpmbuild()
local
ONEPARAM
=
"--quiet"
local
TWOPARAM
=
"--quiet"
local
THRPARAM
=
"--quiet"
local
COMMIT
=
""
if
[
"
$1
"
=
"--commit"
]
;
then
shift
COMMIT
=
"--commit"
fi
local
SPECNAME
=
$1
local
SPECDIR
=
`
dirname
$SPECNAME
`
...
...
@@ -40,7 +46,7 @@ uni_rpmbuild()
#[ -n "$SPECDIR" ] && [ "$SPECDIR" != "." ] && warning "Spec is not in git dir (SPECDIR='$SPECDIR')"
# build package without MENV checking
if
true
||
[
"
$MENV
"
=
"SS"
]
;
then
$NICE
$GEAR
--commit
--rpmbuild
--
$RPMBUILD
"
$ONEPARAM
"
"
$TWOPARAM
"
"
$THRPARAM
"
$@
||
RET
=
$?
$NICE
$GEAR
$COMMIT
--rpmbuild
--
$RPMBUILD
"
$ONEPARAM
"
"
$TWOPARAM
"
"
$THRPARAM
"
$@
||
RET
=
$?
else
fatal
"Build backported src.rpm from git is unsupported now"
# build src.rpm via hasher (on ALT)
...
...
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