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
6a862f5f
Commit
6a862f5f
authored
Aug 18, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add info function
parent
32353818
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
common
share/eterbuild/functions/common
+28
-1
No files found.
share/eterbuild/functions/common
View file @
6a862f5f
...
...
@@ -35,12 +35,39 @@ fatal()
# TODO: add onexit function
isatty
()
{
# check stdout
test
-t
1
}
isatty2
()
{
# check stderr
test
-t
2
}
# Just print warning message
warning
()
{
print_message Warning
"
$@
"
}
info
()
{
[
-n
"
$quiet
"
]
&&
return
# print message to stderr if stderr forwarded to (a file)
if
isatty2
;
then
isatty
||
return
0
echo
"
$@
"
else
echo
"
$@
"
>
&2
fi
}
mark_file_to_remove
()
{
ETERSOFT_FATAL_REMOVE_FILES
=
$(
estrlist union
"
$ETERSOFT_FATAL_REMOVE_FILES
$@
"
)
...
...
@@ -394,7 +421,7 @@ parse_cmd_pre_spec()
parse_cmd_pre
"
$@
"
else
local
SPEC
=
$(
get_gear_spec
)
[
-f
"
$SPEC
"
]
&&
ech
o
"Using autodetected spec
$SPEC
..."
[
-f
"
$SPEC
"
]
&&
inf
o
"Using autodetected spec
$SPEC
..."
# it is possible in some command we need only possibility for spec
# || fatal "Run in dir with spec or in gear repo"
parse_cmd_pre
"
$SPEC
"
"
$@
"
...
...
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