From 4c9ea4bedb7ba3ef9fa5b4ffa1ff8f071a168d3f Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Wed, 6 Jan 2021 14:58:05 +0100 Subject: Reduce on-screen logs when installing --- lib/actions/install.bash | 39 +++++++++++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 8 deletions(-) (limited to 'lib') diff --git a/lib/actions/install.bash b/lib/actions/install.bash index ef43c80..5b975e3 100644 --- a/lib/actions/install.bash +++ b/lib/actions/install.bash @@ -149,38 +149,61 @@ action_install_modules() { } build_moarvm() { + local logfile + + logfile="$(tmpfile)" + info "Starting build on MoarVM" build_prepare "$BASEDIR/src/moarvm-$VERSION/MoarVM-$VERSION" || return - perl Configure.pl \ - "$@" \ + + info "Build log available at $logfile" + + { + perl Configure.pl "$@" \ && make \ && make install \ + > "$logfile" \ || return + } > "$logfile" 2>&1 } build_nqp() { + local logfile + + logfile="$(tmpfile)" + info "Starting build on NQP" build_prepare "$BASEDIR/src/nqp-$VERSION/nqp-$VERSION" || return - perl Configure.pl \ - --backend="$RSTAR_BACKEND" \ - "$@" \ + + info "Build log available at $logfile" + + { + perl Configure.pl --backend="$RSTAR_BACKEND" "$@" \ && make \ && make install \ || return + } > "$logfile" 2>&1 } build_rakudo() { + local logfile + + logfile="$(tmpfile)" + info "Starting build on Rakudo" build_prepare "$BASEDIR/src/rakudo-$VERSION/rakudo-$VERSION" || return - perl Configure.pl \ - --backend="$RSTAR_BACKEND" \ - "$@" \ + + info "Build log available at $logfile" + + { + perl Configure.pl --backend="$RSTAR_BACKEND" "$@" \ && make \ && make install \ || return + } > "$logfile" 2>&1 } build_prepare() { -- cgit v1.1