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
caec2296
Commit
caec2296
authored
Jul 20, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add alternative .gear/rules support
parent
d6140b83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
build
share/eterbuild/functions/build
+8
-1
No files found.
share/eterbuild/functions/build
View file @
caec2296
...
...
@@ -44,9 +44,16 @@ uni_rpmbuild()
[
-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 (SPECDIR='$SPECDIR')"
ALTGEARRULESFILE
=
.gear/rules-
${
SPECNAME
/.spec/
}
ALTGEARRULES
=
$(
git rev-parse
--git-dir
)
/../
$ALTGEARRULESFILE
GEARRULES
=
if
[
-r
"
$ALTGEARRULES
"
]
;
then
echo
"Build with alternate rules
$ALTGEARRULESFILE
"
GEARRULES
=
--rules
=
"
$ALTGEARRULESFILE
"
fi
# build package without MENV checking
if
true
||
[
"
$MENV
"
=
"SS"
]
;
then
$NICE
$GEAR
$COMMIT
--rpmbuild
--
$RPMBUILD
"
$ONEPARAM
"
"
$TWOPARAM
"
"
$THRPARAM
"
$@
||
RET
=
$?
$NICE
$GEAR
$COMMIT
$GEARRULES
--rpmbuild
--
$RPMBUILD
"
$ONEPARAM
"
"
$TWOPARAM
"
"
$THRPARAM
"
$@
||
RET
=
$?
else
fatal
"Build backported src.rpm from git is unsupported now"
# build src.rpm via hasher (on ALT)
...
...
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