diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-07-29 20:18:24 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-07-29 22:57:11 +0200 |
commit | f98646e32da25a627c0d3bd37e61ffc61f338e7e (patch) | |
tree | 9a853ca7816434d3decd472472a74450d2e89aee | |
parent | 4d22cd500c077a65876413d3c853b3160a9bbd7f (diff) | |
download | ptxdist-f98646e32da25a627c0d3bd37e61ffc61f338e7e.tar.gz ptxdist-f98646e32da25a627c0d3bd37e61ffc61f338e7e.tar.xz |
libptxdist: add file descriptor to log only to the logfile
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | scripts/libptxdist.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/libptxdist.sh b/scripts/libptxdist.sh index c030bcd45..a6313819e 100644 --- a/scripts/libptxdist.sh +++ b/scripts/libptxdist.sh @@ -367,6 +367,7 @@ ptxd_make_log() { { export PTXDIST_FD_STDOUT=5 export PTXDIST_FD_STDERR=6 + export PTXDIST_FD_LOGFILE=7 { if [ -z "${PTXDIST_QUIET}" ]; then ptxd_make "${@}" 4>&- | @@ -377,7 +378,7 @@ ptxd_make_log() { exec 4>&- ptxd_make "${@}" 1>> "${PTX_LOGFILE}" fi - } 2>&1 1>&3 3>&- | + } 2>&1 1>&3 3>&- 7>> "${PTX_LOGFILE}" | # make's stderr on fd0 tee -a "${PTX_LOGFILE}" 1>&2 3>&- 4>&- 5>&- 6>&- check_pipe_status || return |