From: Patrik Gornicz Date: Tue, 1 Dec 2009 03:24:27 +0000 (-0500) Subject: added logging of commands X-Git-Url: http://gitweb.pgornicz.com/?a=commitdiff_plain;h=b07f0a1d5d91317274b5aac8f83febca774bb361;p=libbear.git added logging of commands --- diff --git a/vars.mk b/vars.mk index 1616d19..3509405 100644 --- a/vars.mk +++ b/vars.mk @@ -158,9 +158,9 @@ ifeq (${VERBOSE},0) # log the command Q3s := @echo # NOTE: the space between @echo and the # is VERY important!! Q3e := >> ${LOGFILE} - # quiet the command - Q4s := @ - Q4e := + # quiet the command, log the output + Q4s := @set -o pipefail && + Q4e := 2>&1 | tee -a ${LOGFILE} else # EAT the logging printf command Q1s := @true # NOTE: the space between @true and the # is VERY important!!