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
0da586dc
Commit
0da586dc
authored
Aug 20, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmbph: fix passed args
parent
119bfe84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
rpmbph
bin/rpmbph
+9
-9
No files found.
bin/rpmbph
View file @
0da586dc
...
...
@@ -15,7 +15,7 @@ load_mod repl rpm git buildsrpm spec
#############################
# FIXME: CURRENTBRANCHNAME??
Usage
=
"Usage:
$name
[-r -u -U -n -i -m -v -q] [-
$CURRENTBRANCHNAME
] [-
b REPONAME] spec..."
Usage
=
"Usage:
$name
[-r -u -U -n -i -m -v -q] [-b REPONAME] spec..."
function
mygetopts
()
{
name
=
${
0
##*/
}
...
...
@@ -44,13 +44,13 @@ phelp()
# echog " -m - send result via e-mail"
}
# FIXME: has difference between
UPLOADARG
=
while
getopts
:hnuvqb: opt
;
do
PASSEDARGS
=
while
getopts
:hnuaAfvqb: opt
;
do
case
$opt
in
h
)
phelp
;
exit
0
;;
n
)
NOBUILD
=
1
;;
u
)
UPLOADARG
=
"-
$opt
"
;;
u|a|A
)
PASSEDARGS
=
"
$PASSEDARGS
-
$opt
"
;;
f
)
PASSEDARGS
=
"
$PASSEDARGS
-
$opt
"
;;
v
)
VERBOSE
=
1
;;
b
)
BINARYREPONAME
=
$OPTARG
;;
q
)
QUIET
=
1
;;
...
...
@@ -64,8 +64,8 @@ if [ $# -gt 0 ]; then
shift
$((
OPTIND
-
1
))
fi
# pass other options
to RPM (exclude -v):
LISTRPMARGS
=
"
$
UPLOADARG
$(
drop_args
"
$*
"
v n q
)
"
# pass other options
LISTRPMARGS
=
"
$
PASSEDARGS
$*
"
}
set_girar_host
$1
&&
shift
...
...
@@ -176,7 +176,7 @@ if [ "$PKGVENDOR" = "alt" ] && is_gear $SPECDIR ; then
cd
-
>
/dev/null
done
docmd
$BUILDCOMMAND
$MENVARG
$LISTRPMARGS
$UPLOADARG
$LISTNAMES
docmd
$BUILDCOMMAND
-b
$BINARYREPO
$LISTRPMARGS
$LISTNAMES
RET
=
$?
for
SPEC
in
$LISTNAMES
;
do
...
...
@@ -212,7 +212,7 @@ for i in $LISTBUILT ; do
test
-f
"
$SPECNAME
"
||
fatal
"Spec
$SPECNAME
is not found"
docmd
$ETERBUILDBIN
/rpmbps
-b
$BINARYREPO
$SPECNAME
docmd
$BUILDCOMMAND
-b
$BINARYREPO
$LISTRPMARGS
$
UPLOADARG
$
SPECNAME
||
fatal
"Can't build"
docmd
$BUILDCOMMAND
-b
$BINARYREPO
$LISTRPMARGS
$SPECNAME
||
fatal
"Can't build"
uni_rpmrm
$SPECNAME
||
true
done
...
...
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