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
93f5ea43
Commit
93f5ea43
authored
Jul 08, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some comments about spec
parent
bc9da0eb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
rpmbb
bin/rpmbb
+2
-3
common
share/eterbuild/functions/common
+3
-0
spec
share/eterbuild/functions/spec
+1
-1
No files found.
bin/rpmbb
View file @
93f5ea43
...
...
@@ -22,11 +22,10 @@ fi
#############################
Usage
=
"Usage:
$name
[-c -p -i -r -R] [spec]"
Usage
=
"Usage:
rpmbb
[-c -p -i -r -R] [spec]"
function
mygetopts
()
{
name
=
${
0
##*/
}
Descr
=
"
$name
- build binary rpm from spec or from git"
Descr
=
"rpmbb - build binary rpm from spec or from git"
phelp
()
{
...
...
share/eterbuild/functions/common
View file @
93f5ea43
...
...
@@ -126,6 +126,7 @@ get_root_git_dir()
{
local
DIR
=
$(
git rev-parse
--git-dir
2>/dev/null
)
/../
||
return
readlink
-f
"
$DIR
"
2>/dev/null
||
realpath
"
$DIR
"
# FIXME: 1) can return / with good status 2) no one check status later
}
# TODO: move to separate gear file
...
...
@@ -284,6 +285,8 @@ parse_cmd_pre_spec()
else
local
SPEC
=
$(
get_gear_spec
)
[
-f
"
$SPEC
"
]
&&
echo
"Using autodetected spec
$SPEC
..."
# it is possible in some command we need only possibility for spec
# || fatal "Run in dir with spec or in gear repo"
parse_cmd_pre
$SPEC
"
$@
"
fi
}
...
...
share/eterbuild/functions/spec
View file @
93f5ea43
...
...
@@ -239,7 +239,7 @@ get_gear_spec()
local
trySpec
trySpec
=
$(
get_gear_rule_spec
)
# check spec in git root dir (by default)
[
-f
"
$trySpec
"
]
||
trySpec
=
`
echo
$(
get_root_git_dir
)
/
*
.spec
`
[
-f
"
$trySpec
"
]
||
trySpec
=
`
echo
$(
get_root_git_dir
)
/
*
.spec
`
||
return
# check locally only if in gear repo
#is_gear && trySpec=$(echo *.spec)
# printout nothing if can't get spec
...
...
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