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
f59f5cc3
Commit
f59f5cc3
authored
Aug 29, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmbb: add directory support
parent
3dbc96c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
+18
-11
rpmbb
bin/rpmbb
+18
-11
No files found.
bin/rpmbb
View file @
f59f5cc3
...
...
@@ -87,6 +87,9 @@ assert_var PKGFORMAT
# Set nodeps if run in non rpm system
[
"
$PKGFORMAT
"
=
"rpm"
]
&&
NODEPS
=
""
||
NODEPS
=
"--nodeps"
# assure we have only specs or src.rpm
LISTNAMES
=
$(
repodirs_to_specs
$LISTNAMES
)
# instead cbuild req
if
[
-n
"
$BUILDREQ
"
]
;
then
uni_buildreq
$BUILDREQ
$LISTNAMES
...
...
@@ -104,9 +107,13 @@ if [ -n "$BUILDOPT" ] ; then
fi
for
i
in
$LISTNAMES
for
ln
in
$LISTNAMES
do
build_rpms_name
"
$i
"
# force SPECDIR
set_specdir
$ln
cd
$SPECDIR
||
fatal
build_rpms_name
"
$ln
"
if
!
is_alt
;
then
if
!
build_buildroot
;
then
LISTRPMARGS
=
"--buildroot
$BUILDROOT
$LISTRPMARGS
"
...
...
@@ -116,9 +123,9 @@ do
rm
-rf
"
$BUILDROOT
"
fi
LOGFILE
=
"
$LOGDIR
/
`
basename
$NAMESRPMIN
.src.rpm
`
$MENVARG
.log"
echo
"Build in native system"
>
$LOGFILE
#
echo "Build in native system" >$LOGFILE
rm
-f
$LOGFILE
.ok
(
uni_rpmbuild
--commit
$
i
-bb
$LISTRPMARGS
$NODEPS
--target
$BUILDARCH
2>&1
&&
touch
$LOGFILE
.ok
)
|
tee
-a
$LOGFILE
| colorify
(
uni_rpmbuild
--commit
$
ln
-bb
$LISTRPMARGS
$NODEPS
--target
$BUILDARCH
2>&1
&&
touch
$LOGFILE
.ok
)
|
tee
-a
$LOGFILE
| colorify
[
-r
"
$LOGFILE
.ok"
]
RET
=
$?
...
...
@@ -127,14 +134,14 @@ do
if
[
"
$RET
"
=
"0"
]
;
then
check_log
$LOGFILE
RET
=
$?
fi
if
[
"
$RET
"
!=
"0"
]
then
else
echo
echog
"!!!!!!!! ERROR !!!!!!!"
fatal
"Build failed with
$
i
"
fatal
"Build failed with
$
ln
"
fi
echog
"Done with build
$NAMESRPMIN
"
date
cd
-
>
/dev/null
done
echog
"Build is done correctly"
date
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