From 54dec49698b839a1b8d877610c84a95acbb2121c Mon Sep 17 00:00:00 2001 From: thierry Date: Wed, 4 Jul 2007 14:15:40 +0000 Subject: [PATCH] attempts to remove output for cron --- scripts/nightly-build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/nightly-build.sh b/scripts/nightly-build.sh index 9715a1b..442f6e4 100755 --- a/scripts/nightly-build.sh +++ b/scripts/nightly-build.sh @@ -95,6 +95,9 @@ function build () { echo "Running make IN build $(pwd)" make stage1=true ${MAKEOPTS[@]} TAGSFILE=${TAGSFILE} PLDISTRO=${DISTRO} ${MAKEVARS[@]} -C $BASE $MAKETARGETS make ${MAKEOPTS[@]} TAGSFILE=${TAGSFILE} PLDISTRO=${DISTRO} ${MAKEVARS[@]} -C $BASE $MAKETARGETS + + # restore silent mode - otherwise cron gets it + set +x } function runtest () { @@ -124,6 +127,8 @@ function runtest () { if [ "$?" != 0 ] ; then failure fi + + set +x } function show_env () { @@ -204,11 +209,11 @@ function main () { if [ -n "$DO_BUILD" ] ; then build >> ${BUILD}/log-build.txt 2>&1 + touch ${BUILD}.build-ok fi if [ -n "$DO_TEST" ] ; then runtest ${BUILD} >> ${BUILD}/log-build.txt 2>&1 - touch ${BUILD}.build-ok fi success >> ${BUILD}/log-build.txt 2>&1 -- 2.43.0