From 96b9a97c3e8d233f2d9453e1025dbba21780dace Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Wed, 6 Jan 2021 15:13:24 +0100 Subject: Only use logfile if RSTAR_DEBUG isn't set --- lib/actions/install.bash | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/lib/actions/install.bash b/lib/actions/install.bash index dfce732..a0ff2a5 100644 --- a/lib/actions/install.bash +++ b/lib/actions/install.bash @@ -151,15 +151,17 @@ action_install_modules() { } build_moarvm() { - local logfile - - logfile="$(tmpfile)" + local logfile="/dev/stdout" info "Starting build on MoarVM" build_prepare "$BASEDIR/src/moarvm-$VERSION/MoarVM-$VERSION" || return - notice "Build log available at $logfile" + if [[ -z "$RSTAR_DEBUG" ]] + then + logfile="$(tmpfile)" + notice "Build log available at $logfile" + fi { perl Configure.pl "$@" \ @@ -171,15 +173,17 @@ build_moarvm() { } build_nqp() { - local logfile - - logfile="$(tmpfile)" + local logfile="/dev/stdout" info "Starting build on NQP" build_prepare "$BASEDIR/src/nqp-$VERSION/nqp-$VERSION" || return - notice "Build log available at $logfile" + if [[ -z "$RSTAR_DEBUG" ]] + then + logfile="$(tmpfile)" + notice "Build log available at $logfile" + fi { perl Configure.pl --backend="$RSTAR_BACKEND" "$@" \ @@ -190,15 +194,17 @@ build_nqp() { } build_rakudo() { - local logfile - - logfile="$(tmpfile)" + local logfile="/dev/stdout" info "Starting build on Rakudo" build_prepare "$BASEDIR/src/rakudo-$VERSION/rakudo-$VERSION" || return - notice "Build log available at $logfile" + if [[ -z "$RSTAR_DEBUG" ]] + then + logfile="$(tmpfile)" + notice "Build log available at $logfile" + fi { perl Configure.pl --backend="$RSTAR_BACKEND" "$@" \ -- cgit v1.1