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
ab10e8a8
Commit
ab10e8a8
authored
Feb 06, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable support for use in gear without specname
parent
09b7e9f4
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
9 deletions
+24
-9
rpmbb
bin/rpmbb
+1
-1
rpmbph
bin/rpmbph
+1
-1
rpmbs
bin/rpmbs
+1
-1
rpmbsh
bin/rpmbsh
+1
-1
rpmgs
bin/rpmgs
+1
-1
rpmurl
bin/rpmurl
+1
-1
common
share/eterbuild/functions/common
+13
-1
spec
share/eterbuild/functions/spec
+5
-2
No files found.
bin/rpmbb
View file @
ab10e8a8
...
...
@@ -65,7 +65,7 @@ fi
LISTRPMARGS
=
$@
}
parse_cmd_pre
"
$@
"
parse_cmd_pre
_spec
"
$@
"
mygetopts
$LISTARGS
...
...
bin/rpmbph
View file @
ab10e8a8
...
...
@@ -295,7 +295,7 @@ if is_girar_name $1 ; then
shift
fi
parse_cmd_pre
"
$@
"
parse_cmd_pre
_spec
"
$@
"
mygetopts
$LISTARGS
test
-z
"
$LISTNAMES
"
&&
fatal
"Error: no such file"
...
...
bin/rpmbs
View file @
ab10e8a8
...
...
@@ -151,7 +151,7 @@ if is_girar_name $1 ; then
shift
fi
parse_cmd_pre
"
$@
"
parse_cmd_pre
_spec
"
$@
"
# quotes brokes option handling
mygetopts
$LISTARGS
...
...
bin/rpmbsh
View file @
ab10e8a8
...
...
@@ -67,7 +67,7 @@ if is_girar_name $1 ; then
shift
fi
parse_cmd_pre
"
$@
"
parse_cmd_pre
_spec
"
$@
"
mygetopts
$LISTARGS
[
-n
"
$LISTNAMES
"
]
||
fatal
"Run with exists specs as arg"
...
...
bin/rpmgs
View file @
ab10e8a8
...
...
@@ -229,7 +229,7 @@ function print_error()
exit
1
}
parse_cmd_pre
"
$@
"
parse_cmd_pre
_spec
"
$@
"
mygetopts
$LISTARGS
test
-z
"
$VERBOSE
"
||
echo
"'
$LISTNAMES
' @ '
$LISTRPMARGS
'"
...
...
bin/rpmurl
View file @
ab10e8a8
...
...
@@ -56,7 +56,7 @@ fi
LISTRPMARGS
=
$@
}
parse_cmd_pre
"
$@
"
parse_cmd_pre
_spec
"
$@
"
mygetopts
$LISTARGS
...
...
share/eterbuild/functions/common
View file @
ab10e8a8
...
...
@@ -129,7 +129,7 @@ else
fi
}
# Отделяет файлы в LISTNAMES
# Отделяет файлы в LISTNAMES
(с полными путями)
# Отделяет указание среды в MENV
# Устанавливает LISTARGS в оставшиеся аргументы
# использование:
...
...
@@ -169,6 +169,18 @@ detect_target_env
[
-n
"
$VERBOSE
"
]
&&
echo
"LISTNAMES=
$LISTNAMES
LISTARGS=
$LISTARGS
"
||
:
}
parse_cmd_pre_spec
()
{
# hack for check spec presence in command line
if
echo
$@
|
grep
-q
\.
spec
;
then
parse_cmd_pre
"
$@
"
else
local
SPEC
=
$(
get_gear_spec
)
[
-f
"
$SPEC
"
]
&&
echo
"Using autodetected spec
$SPEC
..."
parse_cmd_pre_spec
$SPEC
"
$@
"
fi
}
check_key
()
{
echog
"Check access to SSH private key..."
...
...
share/eterbuild/functions/spec
View file @
ab10e8a8
...
...
@@ -191,9 +191,12 @@ set_specdir()
# search for gear spec
get_gear_spec
()
{
local
trySpec
trySpec
=
$(
echo
*
.spec
)
local
trySpec
=
""
# check locally only if in gear repo (useful if spec in ~/.gear)
is_gear
&&
trySpec
=
$(
echo
*
.spec
)
# if not in local dir, check spec in git root dir
[
-f
"
$trySpec
"
]
||
trySpec
=
`
echo
$(
get_root_git_dir
)
/
*
.spec
`
# printout nothing if can't get spec
[
-f
"
$trySpec
"
]
||
trySpec
=
""
echo
$trySpec
test
-f
"
$trySpec
"
...
...
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