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
51b200c2
Commit
51b200c2
authored
Oct 04, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
introduce store_output (copied from eepm)
parent
552b26e4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
common
share/eterbuild/functions/common
+22
-0
No files found.
share/eterbuild/functions/common
View file @
51b200c2
...
...
@@ -5,6 +5,7 @@
# $1 - needed VERSION of etersoft-build-utils. f.i. 162
# TODO: remove it and use appropriate command directly
# for systems without realpath command
realpath
()
{
...
...
@@ -32,6 +33,8 @@ fatal()
exit
1
}
# TODO: add onexit function
# Just print warning message
warning
()
{
...
...
@@ -48,6 +51,25 @@ remove_file_from_remove()
ETERSOFT_FATAL_REMOVE_FILES
=
$(
estrlist exclude
"
$*
"
"
$ETERSOFT_FATAL_REMOVE_FILES
"
)
}
# copied from eepm (and modified)
store_output
()
{
# use make_temp_file from etersoft-build-utils
RC_STDOUT
=
$(
mktemp
)
mark_file_to_remove
$RC_STDOUT
#RC_STDERR=$(mktemp)
"
$@
"
2>&1 |
tee
$RC_STDOUT
# http://tldp.org/LDP/abs/html/bashver3.html#PIPEFAILREF
return
$PIPESTATUS
}
# TODO: realize onexit handler (see before) and drop out this clean from use
clean_store_output
()
{
rm
-f
$RC_STDOUT
}
# end of copied from eepm
set_eterbuilddir
()
{
...
...
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