summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2008-04-15 18:03:10 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2008-04-15 18:03:10 +0000
commit2c7196a8c12ba7bb0358bf0edff8b1417b95dc07 (patch)
treee1390bf0f1a853d21818f21991452475f459d236 /bin
parent1f2e459d0c9e9fd7329d90670c0a9949b35a663c (diff)
downloadptxdist-2c7196a8c12ba7bb0358bf0edff8b1417b95dc07.tar.gz
ptxdist-2c7196a8c12ba7bb0358bf0edff8b1417b95dc07.tar.xz
* bin/ptxdist, scripts/libptxdist.sh:
put logging into central place git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8025 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ptxdist28
1 files changed, 15 insertions, 13 deletions
diff --git a/bin/ptxdist b/bin/ptxdist
index 426dc3f86..a0235b23f 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -560,7 +560,7 @@ clean() {
fi
echo "${PROMPT}removing deps..."
- rm -f "${PTXDIST_PLATFORMDIR}/"{depend.out,deptree-a4.ps,deptree.ps}
+ rm -f "${PTXDIST_PLATFORMDIR}/"{deptree-a4.ps,deptree.ps}
echo "${PROMPT}removing imagedir..."
rm -fr "${IMAGEDIR}"
echo "${PROMPT}removing root..."
@@ -1225,7 +1225,7 @@ while [ "$#" != "0" ]; do
check_compiler
check_dirs
check_deps
- ptxd_make "${STATEDIR}/${1}.compile" 2>&1 | tee -a ${PTXDIST_PLATFORMDIR}/logfile
+ ptxd_make "${STATEDIR}/${1}.compile"
check_pipe_status
exit
;;
@@ -1272,7 +1272,7 @@ while [ "$#" != "0" ]; do
export EXPORTDIR="${1}"
check_ptxconfig
check_deps
- ptxd_make export 2>&1 | tee -a ${PTXDIST_PLATFORMDIR}/logfile
+ ptxd_make export
check_pipe_status
exit
;;
@@ -1280,7 +1280,7 @@ while [ "$#" != "0" ]; do
check_ptxconfig
check_if_selected $1
check_deps
- ptxd_make "${STATEDIR}/${1}.extract" 2>&1 | tee -a ${PTXDIST_PLATFORMDIR}/logfile
+ ptxd_make "${STATEDIR}/${1}.extract"
check_pipe_status
exit
;;
@@ -1288,12 +1288,12 @@ while [ "$#" != "0" ]; do
check_ptxconfig
check_deps
if [ $# -eq 0 ]; then
- ptxd_make get 2>&1 | tee -a ${PTXDIST_PLATFORMDIR}/logfile
+ ptxd_make get
check_pipe_status
exit
else
check_if_selected $1
- ptxd_make "${STATEDIR}/${1}.get" 2>&1 | tee -a ${PTXDIST_PLATFORMDIR}/logfile
+ ptxd_make "${STATEDIR}/${1}.get"
check_pipe_status
exit
fi
@@ -1303,7 +1303,7 @@ while [ "$#" != "0" ]; do
check_compiler
check_dirs
check_deps
- ptxd_make world 2>&1 | tee -a ${PTXDIST_PLATFORMDIR}/logfile
+ ptxd_make world
check_pipe_status
exit
;;
@@ -1316,7 +1316,9 @@ while [ "$#" != "0" ]; do
check_compiler
check_dirs
check_deps
- ptxd_make images 2>&1 | tee -a ${PTXDIST_PLATFORMDIR}/logfile
+ ptxd_make world
+ check_pipe_status
+ ptxd_make images
check_pipe_status
exit
;;
@@ -1326,7 +1328,7 @@ while [ "$#" != "0" ]; do
check_compiler
check_dirs
check_deps
- ptxd_make "${STATEDIR}/${1}.install" 2>&1 | tee -a ${PTXDIST_PLATFORMDIR}/logfile
+ ptxd_make "${STATEDIR}/${1}.install"
check_pipe_status
exit
;;
@@ -1392,7 +1394,7 @@ while [ "$#" != "0" ]; do
check_compiler
check_dirs
check_deps
- ptxd_make "${1}" 2>&1 | tee -a ${PTXDIST_PLATFORMDIR}/logfile
+ ptxd_make "${1}"
check_pipe_status
exit
;;
@@ -1461,14 +1463,14 @@ while [ "$#" != "0" ]; do
check_compiler
check_dirs
check_deps
- ptxd_make "${STATEDIR}/${1}.prepare" 2>&1 | tee -a ${PTXDIST_PLATFORMDIR}/logfile
+ ptxd_make "${STATEDIR}/${1}.prepare"
check_pipe_status
exit
;;
print) shift
check_ptxconfig
check_deps
- ptxd_make "print-${1}" 2>&1 | tee -a ${PTXDIST_PLATFORMDIR}/logfile
+ ptxd_make "print-${1}"
check_pipe_status
shift
;;
@@ -1506,7 +1508,7 @@ while [ "$#" != "0" ]; do
check_compiler
check_dirs
check_deps
- ptxd_make "${STATEDIR}/${1}.targetinstall" 2>&1 | tee -a ${PTXDIST_PLATFORMDIR}/logfile
+ ptxd_make "${STATEDIR}/${1}.targetinstall"
check_pipe_status
exit
;;