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
65444434
Commit
65444434
authored
Sep 19, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uni_build: add set __ccache_dir for rpmbuild if CCACHE_ENABLED
parent
918635bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
build
share/eterbuild/functions/build
+8
-3
No files found.
share/eterbuild/functions/build
View file @
65444434
...
...
@@ -16,6 +16,7 @@ uni_rpmbuild()
local
ONEPARAM
=
"--quiet"
local
TWOPARAM
=
"--quiet"
local
THRPARAM
=
"--quiet"
local
FOURPARAM
=
"--quiet"
local
COMMIT
=
""
if
[
"
$1
"
=
"--commit"
]
;
then
...
...
@@ -40,6 +41,10 @@ uni_rpmbuild()
TWOPARAM
=
"--define=_topdir
$RPMTOPDIR
"
fi
if
[
-n
"
$CCACHE_ENABLE
"
]
&&
[
-n
"
$CCACHE_DIR
"
]
;
then
FOURPARAM
=
"--define=__ccache_dir
$CCACHE_DIR
"
fi
if
is_gear
$SPECDIR
;
then
[
-f
"
$SPECNAME
"
]
||
fatal
"run uni_rpmbuild with spec as 2nd parameter"
shift
# skip spec name
...
...
@@ -53,7 +58,7 @@ uni_rpmbuild()
fi
# build package without MENV checking
if
true
||
[
"
$MENV
"
=
"SS"
]
;
then
$NICE
$GEAR
$COMMIT
$GEARRULES
--rpmbuild
--
$RPMBUILD
"
$ONEPARAM
"
"
$TWOPARAM
"
"
$THRPARAM
"
$@
||
RET
=
$?
$NICE
$GEAR
$COMMIT
$GEARRULES
--rpmbuild
--
$RPMBUILD
"
$ONEPARAM
"
"
$TWOPARAM
"
"
$THRPARAM
"
"
$FOURPARAM
"
$@
||
RET
=
$?
else
fatal
"Build backported src.rpm from git is unsupported now"
# build src.rpm via hasher (on ALT)
...
...
@@ -62,9 +67,9 @@ uni_rpmbuild()
fi
else
mkdir
-p
$RPMTOPDIR
/BUILD
$RPMTOPDIR
/SRPMS
$NICE
$RPMBUILD
"
$ONEPARAM
"
"
$TWOPARAM
"
"
$THRPARAM
"
$@
||
RET
=
$?
$NICE
$RPMBUILD
"
$ONEPARAM
"
"
$TWOPARAM
"
"
$THRPARAM
"
"
$FOURPARAM
"
$@
||
RET
=
$?
fi
[
-n
"
$VERBOSE
"
]
&&
echo
"Run
$RPMBUILD
$ONEPARAM
$TWOPARAM
$THRPARAM
$@
"
||
:
[
-n
"
$VERBOSE
"
]
&&
echo
"Run
$RPMBUILD
$ONEPARAM
$TWOPARAM
$THRPARAM
$
FOURPARAM
$
@
"
||
:
return
$RET
}
...
...
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