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
95f68b25
Commit
95f68b25
authored
Jan 22, 2011
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove all temp generated src.rpm, sources, specs
parent
14b9d9cb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
3 deletions
+23
-3
rpmbph
bin/rpmbph
+7
-3
rpmbsh
bin/rpmbsh
+4
-0
build
share/eterbuild/functions/build
+12
-0
No files found.
bin/rpmbph
View file @
95f68b25
...
...
@@ -18,6 +18,7 @@ DISTRVERSION=`$DISTRVENDOR -v`
altspec_to_local
()
{
local
i
local
TXTRELEASE
local
SPECNAME
SPECNAME
=
$1
...
...
@@ -396,7 +397,7 @@ fi
unset
MENV MENVARG
# handle src.rpm and spec both, LISTBUILT - result with full path
e
s to src.rpms
# handle src.rpm and spec both, LISTBUILT - result with full paths to src.rpms
pack_src_rpm
$LISTNAMES
export
RPMTOPDIR
=
$RPMDIR
/BP
...
...
@@ -407,11 +408,14 @@ export IGNOREGEAR=1
for
i
in
$LISTBUILT
;
do
uni_rpminstall
$i
# remove primary src.rpm only if src.rpm was not primary
echo
$LISTNAMES
|
grep
-q
$i
||
rm
-f
$i
SPECNAME
=
$RPMTOPDIR
/SPECS/
$(
spec_by_srpm
$i
)
test
-f
"
$SPECNAME
"
||
fatal
"Spec
$SPECNAME
is not found"
# FIXME: do not remove if not repacked
#rm -f $SPKG
altspec_to_local
$SPECNAME
$BUILDCOMMAND
$LISTRPMARGS
$UPLOADARG
$REMOTEBUILD
$DISTRARG
$SPECNAME
||
fatal
"Can't build"
uni_rpmrm
$SPECNAME
||
true
done
bin/rpmbsh
View file @
95f68b25
...
...
@@ -101,6 +101,10 @@ if [ -n "$REMOTEBUILD" ] ; then
else
time
$ETERBUILDBIN
/myhsh
$MENVARG
$LISTRPMARGS
$LISTBUILT
RESULT
=
$?
# remove generated src.rpm
for
i
in
$LISTBUILT
;
do
echo
$LISTNAMES
|
grep
-q
$i
||
rm
-f
$i
done
date
echo
"-------------------------------"
...
...
share/eterbuild/functions/build
View file @
95f68b25
...
...
@@ -116,6 +116,18 @@ uni_rpminstall()
return
$RET
}
# remove source and spec
uni_rpmrm
()
{
local
TWOPARAM
=
"-v"
if
[
-n
"
$RPMTOPDIR
"
]
;
then
TWOPARAM
=
"--define=_topdir
$RPMTOPDIR
"
fi
$RPMBUILD
"
$TWOPARAM
"
--rmsource
--rmspec
$@
}
# LISTNAMES, options in arg
# build LISTBUILT list with src.rpm full path
...
...
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