summaryrefslogtreecommitdiffstats
path: root/scripts/libptxdist.sh
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2010-07-27 00:47:34 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2010-08-02 07:44:29 +0200
commitee2e2f390736afcbea604cf263039ff1e0adbb72 (patch)
tree970384f7116eb0063b4bcc3c0c29d5e7664bd29b /scripts/libptxdist.sh
parenteea905f9cc99c4197579c0fefefdbdad59eb5f8d (diff)
downloadptxdist-ee2e2f390736afcbea604cf263039ff1e0adbb72.tar.gz
ptxdist-ee2e2f390736afcbea604cf263039ff1e0adbb72.tar.xz
[ptxd_make_log] provide stderr on PTXDIST_FD_STDERR
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'scripts/libptxdist.sh')
-rw-r--r--scripts/libptxdist.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/libptxdist.sh b/scripts/libptxdist.sh
index 8cd8ee7a2..cfee30781 100644
--- a/scripts/libptxdist.sh
+++ b/scripts/libptxdist.sh
@@ -352,14 +352,16 @@ ptxd_make_log() {
# fd3 == stdout to logfile
# fd4 == stderr to logfile
# fd5 == clean stdout
+ # fd6 == clean stderr
#
{
export PTXDIST_FD_STDOUT=5
+ export PTXDIST_FD_STDERR=6
{
if [ -z "${PTXDIST_QUIET}" ]; then
ptxd_make "${@}" 4>&- |
# make's stdout on fd0
- tee -a "${PTX_LOGFILE}" 2>&4 4>&- 5>&-
+ tee -a "${PTX_LOGFILE}" 2>&4 4>&- 5>&- 6>&-
check_pipe_status || return
else
exec 4>&-
@@ -367,9 +369,9 @@ ptxd_make_log() {
fi
} 2>&1 1>&3 3>&- |
# make's stderr on fd0
- tee -a "${PTX_LOGFILE}" 1>&2 3>&- 4>&- 5>&-
+ tee -a "${PTX_LOGFILE}" 1>&2 3>&- 4>&- 5>&- 6>&-
check_pipe_status || return
- } 3>&1 4>&2 5>&1
+ } 3>&1 4>&2 5>&1 6>&2
}