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
8c564748
Commit
8c564748
authored
Jan 09, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.alt:packages/etersoft-build-utils
parents
7d261cc3
1d692ebc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
rpmbb
bin/rpmbb
+8
-2
rpm
share/eterbuild/functions/rpm
+8
-6
No files found.
bin/rpmbb
View file @
8c564748
...
...
@@ -110,8 +110,14 @@ do
echo
"Build in native system"
>
$LOGFILE
rm
-f
$LOGFILE
.failed
(
uni_rpmbuild
$RPMBUILD
$i
-bb
$LISTRPMARGS
$NODEPS
--target
$DEFAULTARCH
2>&1
||
touch
$LOGFILE
.failed
)
|
tee
-a
$LOGFILE
check_log
$LOGFILE
;
RES
=
$?
if
[
-f
$LOGFILE
.failed
]
||
[
$RES
!=
0
]
[
-r
"
$LOGFILE
.failed"
]
&&
RET
=
1
||
RET
=
0
if
[
"
$RET
"
=
"0"
]
;
then
check_log
$LOGFILE
RET
=
$?
fi
if
[
"
$RET
"
!=
"0"
]
then
echo
"!!!!!!!! ERROR !!!!!"
fatal
"Failed with
$i
"
...
...
share/eterbuild/functions/rpm
View file @
8c564748
...
...
@@ -10,6 +10,7 @@
# other parameters
uni_rpmbuild
()
{
local
RET
=
0
local
COMMAND
=
$1
# just for fill by something
local
ONEPARAM
=
"-v"
...
...
@@ -26,11 +27,11 @@ uni_rpmbuild()
if
[
"
$COMMAND
"
=
"buildreq"
]
;
then
if
is_gear
$SPECDIR
;
then
$NICE
$GEARBUILDREQ
--commit
--
$@
$NICE
$GEARBUILDREQ
--commit
--
$@
||
RET
=
$?
else
$NICE
$COMMAND
$@
$NICE
$COMMAND
$@
||
RET
=
$?
fi
return
return
$RET
fi
if
is_gear
$SPECDIR
;
then
...
...
@@ -38,16 +39,17 @@ uni_rpmbuild()
shift
# skip spec name
[
-n
"
$SPECDIR
"
]
&&
[
"
$SPECDIR
"
!=
"."
]
&&
warning
"Spec is not in git dir"
if
[
"
$MENV
"
=
"SS"
]
;
then
$NICE
$GEAR
--commit
--rpmbuild
--
$COMMAND
"
$ONEPARAM
"
$@
$NICE
$GEAR
--commit
--rpmbuild
--
$COMMAND
"
$ONEPARAM
"
$@
||
RET
=
$?
else
# build src.rpm via hasher (on ALT)
# $NICE gear-hsh --build-args="-bs" --rpmbuild -- $COMMAND "$ONEPARAM" $@
$NICE
$GEAR
--hasher
--
myhsh
--build-prog
=
$ETERBUILDDIR
/functions/rebuild
$@
$NICE
$GEAR
--hasher
--
myhsh
--build-prog
=
$ETERBUILDDIR
/functions/rebuild
$@
||
RET
=
$?
fi
else
$NICE
$COMMAND
"
$ONEPARAM
"
$@
$NICE
$COMMAND
"
$ONEPARAM
"
$@
||
RET
=
$?
fi
[
-n
"
$VERBOSE
"
]
&&
echo
"Run
$COMMAND
$ONEPARAM
$@
"
||
:
return
$RET
}
# get correct BUILDROOT, run build_rpms_name before!
...
...
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