mirror of https://git.wownero.com/dsc/mxe.git
build-pkg: add logging function echo
echo is format + print log is echo('[build-pkg]', ...)
This commit is contained in:
parent
20bf529ce9
commit
2bdd26e490
|
@ -59,8 +59,12 @@ local TARGETS = {
|
|||
'x86_64-w64-mingw32.shared',
|
||||
}
|
||||
|
||||
local function echo(fmt, ...)
|
||||
print(fmt:format(...))
|
||||
end
|
||||
|
||||
local function log(fmt, ...)
|
||||
print('[build-pkg]', fmt:format(...))
|
||||
echo('[build-pkg]\t' .. fmt, ...)
|
||||
end
|
||||
|
||||
-- based on http://lua-users.org/wiki/SplitJoin
|
||||
|
|
Loading…
Reference in New Issue