aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2021-01-06 14:58:05 +0100
committerPatrick Spek <p.spek@tyil.nl>2021-01-06 14:58:05 +0100
commit4c9ea4bedb7ba3ef9fa5b4ffa1ff8f071a168d3f (patch)
tree1a9138b833964f5b863fad3d4cdf10918d90a2ba /lib
parent40242af4f9391a31cfa0ec1e1eebb25c6b6fbd37 (diff)
Reduce on-screen logs when installing
Diffstat (limited to 'lib')
-rw-r--r--lib/actions/install.bash39
1 files changed, 31 insertions, 8 deletions
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() {