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
27d70b9c
Commit
27d70b9c
authored
Dec 04, 2008
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve git support
parent
18eee7cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
rpm
share/eterbuild/functions/rpm
+13
-2
No files found.
share/eterbuild/functions/rpm
View file @
27d70b9c
...
...
@@ -20,13 +20,24 @@ uni_rpmbuild()
# FIXME: do not override -v
ONEPARAM
=
"--define=_source_payload w9.gzdio"
fi
# TODO: add support for git
if
[
"
$COMMAND
"
=
"buildreq"
]
;
then
$NICE
$COMMAND
$@
return
fi
if
is_git
$SPECDIR
;
then
[
-f
"
$SPECNAME
"
]
||
fatal
"run uni_rpmbuild with spec as 2nd parameter"
shift
# skip spec name
[
-n
"
$SPECDIR
"
]
&&
[
"
$SPECDIR
"
!=
"."
]
&&
warning
"Spec is not in git dir"
$NICE
gear
--commit
--rpmbuild
--
$COMMAND
"
$ONEPARAM
"
$@
if
[
"
$MENV
"
=
"SS"
]
;
then
$NICE
gear
--commit
--rpmbuild
--
$COMMAND
"
$ONEPARAM
"
$@
else
# build src.rpm via hasher (on ALT)
# $NICE gear-hsh --build-args="-bs" --rpmbuild -- $COMMAND "$ONEPARAM" $@
$NICE
gear
--hasher
--
myhsh
--build-prog
=
$ETERBUILDDIR
/functions/rebuild
$@
fi
else
$COMMAND
"
$ONEPARAM
"
$@
$
NICE
$
COMMAND
"
$ONEPARAM
"
$@
fi
[
-n
"
$VERBOSE
"
]
&&
echo
"Run
$COMMAND
$ONEPARAM
$@
"
||
:
}
...
...
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