diff options
author | Patrick Spek <p.spek@tyil.nl> | 2021-01-06 15:13:24 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2021-01-06 15:13:24 +0100 |
commit | 96b9a97c3e8d233f2d9453e1025dbba21780dace (patch) | |
tree | 564ce0718c4ceddaff59dbd8d4074e9132eb7633 | |
parent | 7c50131ae8a8a3938e12557ecb350babbddb1f7c (diff) |
Only use logfile if RSTAR_DEBUG isn't set
-rw-r--r-- | lib/actions/install.bash | 30 |
1 files 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" "$@" \ |