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
4c7f8cc5
Commit
4c7f8cc5
authored
Oct 07, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmbb: add -R option for buildreq -bi
parent
2d937e9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
rpmbb
bin/rpmbb
+7
-5
build
share/eterbuild/functions/build
+4
-2
No files found.
bin/rpmbb
View file @
4c7f8cc5
...
...
@@ -24,7 +24,7 @@ fi
#############################
Usage
=
"Usage:
$name
[-c -p -i -r] spec..."
Usage
=
"Usage:
$name
[-c -p -i -r
-R
] spec..."
function
mygetopts
()
{
name
=
${
0
##*/
}
...
...
@@ -39,15 +39,17 @@ phelp()
echog
" -i - install and package"
echog
" -p - packaging installed files into package"
echog
" -r - find build requires"
echog
" -R - find build requires with -bi"
}
while
getopts
:hcipr opt
;
do
while
getopts
:hcipr
R
opt
;
do
case
$opt
in
h
)
phelp
;
exit
0
;;
c
)
BUILDOPT
=
"c"
;;
i
)
BUILDOPT
=
"i b"
;;
p
)
BUILDOPT
=
"b"
;;
r
)
BUILDREQ
=
1
;;
r
)
BUILDREQ
=
"-bc"
;;
R
)
BUILDREQ
=
"-bi"
;;
+?
)
echog
"
$name
: options should not be preceded by a '+'."
1>&2
;
exit
2
;;
# ?) echog "$name: $OPTARG: bad option. Use -h for help." 1>&2 ; exit 2;;
?
)
OPTIND
=
$((
OPTIND-1
))
;
break
;
...
...
@@ -80,9 +82,9 @@ fi
# instead cbuild req
if
[
-n
"
$BUILDREQ
"
]
;
then
uni_buildreq
$LISTNAMES
uni_buildreq
$
BUILDREQ
$
LISTNAMES
RET
=
$?
echog
"You can run
buildreq with -bi param for search a dependences for install section of the package
"
echog
"You can run
with -R param for search a dependences for install section of the package (as with buildreq -bi)
"
exit
$RET
fi
...
...
share/eterbuild/functions/build
View file @
4c7f8cc5
...
...
@@ -77,15 +77,17 @@ uni_rpmbuild()
uni_buildreq
()
{
local
RET
=
0
local
BUILDREQPARAM
=
"
$1
"
shift
local
SPECNAME
=
$(
realpath
"
$1
"
)
shift
local
SPECDIR
=
`
dirname
$SPECNAME
`
local
GEARBUILDREQ
=
gear-buildreq
if
is_gear
$SPECDIR
;
then
$NICE
$GEARBUILDREQ
--commit
--
"
$SPECNAME
"
$@
||
RET
=
$?
$NICE
$GEARBUILDREQ
$BUILDREQPARAM
--commit
--
"
$SPECNAME
"
$@
||
RET
=
$?
else
$NICE
buildreq
"
$SPECNAME
"
$@
||
RET
=
$?
$NICE
buildreq
$BUILDREQPARAM
"
$SPECNAME
"
$@
||
RET
=
$?
fi
return
$RET
}
...
...
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