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
d9e86de9
Commit
d9e86de9
authored
Jul 20, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmbph: fix bug fix positional -n param
parent
d889ef6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
rpmbph
bin/rpmbph
+9
-7
strings
share/eterbuild/functions/strings
+1
-0
No files found.
bin/rpmbph
View file @
d9e86de9
...
...
@@ -274,10 +274,11 @@ phelp()
echog
"
$Usage
"
echo
"Use rpmbph -
$CURRENTBRANCHNAME
for backport to ALT
$CURRENTBRANCHNAME
and so on"
echog
"Options:"
echog
" -r - remote build"
echog
" -u - sign and upload after build"
echog
" -n - do not build in hasher (use first in the list)"
echog
" -i - install built packages in test hasher"
echog
" -u - sign and upload after build"
# will pass to rpmbs/rpmbsh
echog
" -n - do not build in hasher"
echog
" -i - install built packages in test hasher"
# will pass to rpmbs/rpmbsh
echog
"Ext. options:"
echog
" -r - remote build"
# will pass to rpmbs/rpmbsh
echog
" -v - more verbose"
# echog " -m - send result via e-mail"
}
...
...
@@ -295,12 +296,13 @@ while getopts :hniuv opt; do
done
# remove args that were options
if
[
$#
-gt
0
]
;
then
if
[
$#
-gt
0
]
;
then
shift
$((
OPTIND
-
1
))
fi
# pass other options to RPM:
LISTRPMARGS
=
$@
# pass other options to RPM (exclude -n -v):
LISTRPMARGS
=
$(
drop_args
"
$@
"
n v
)
}
if
is_girar_name
$1
;
then
...
...
share/eterbuild/functions/strings
View file @
d9e86de9
...
...
@@ -54,6 +54,7 @@ regexp_exclude_list()
# drop listed options
# FIXME: do not handle args like -Uh, only -U -h separately
# "-n -u -r -i" n i -> "-u -r"
drop_args
()
{
local
ARGS
=
"
$1
"
...
...
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