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
2a69b952
Commit
2a69b952
authored
Feb 13, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add mark_file_to_remove for mark tmp. files and remove it if failed
parent
94872861
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
common
share/eterbuild/functions/common
+13
-0
spec
share/eterbuild/functions/spec
+2
-0
No files found.
share/eterbuild/functions/common
View file @
2a69b952
...
...
@@ -26,6 +26,9 @@ print_message()
fatal
()
{
print_message Error
"
$@
"
if
[
-n
"
$ETERSOFT_FATAL_REMOVE_FILES
"
]
;
then
rm
-vf
$ETERSOFT_FATAL_REMOVE_FILES
fi
exit
1
}
...
...
@@ -35,6 +38,16 @@ warning()
print_message Warning
"
$@
"
}
mark_file_to_remove
()
{
ETERSOFT_FATAL_REMOVE_FILES
=
$(
estrlist union
"
$ETERSOFT_FATAL_REMOVE_FILES
$@
"
)
}
remove_file_from_remove
()
{
ETERSOFT_FATAL_REMOVE_FILES
=
$(
estrlist exclude
"
$*
"
"
$ETERSOFT_FATAL_REMOVE_FILES
"
)
}
set_eterbuilddir
()
{
...
...
share/eterbuild/functions/spec
View file @
2a69b952
...
...
@@ -18,6 +18,7 @@ eval_spec()
# Drop changelog and make spec copy
# see http://bugs.etersoft.ru/show_bug.cgi?id=6588
mark_file_to_remove
$SPECNAME
.tmp
$SPECNAME
.changelog
separate_changelog
$SPECNAME
$SPECNAME
.tmp
$SPECNAME
.changelog
SPEC
=
$SPECNAME
.tmp
...
...
@@ -38,6 +39,7 @@ eval_spec()
$USEARCH
$RPMBUILD
-bE
--target
$SYSARCH
$RPMBUILDARG
$SPEC
2>/dev/null
||
cat
$SPEC
fi
rm
-f
$SPECNAME
.tmp
$SPECNAME
.changelog
remove_file_from_remove
$SPECNAME
.tmp
$SPECNAME
.changelog
}
get_release
()
...
...
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