From 3ec7f745b41b709816f936eb2c400626bb6f7d86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 21 Dec 2022 14:25:35 +0100 Subject: dev: do not continue with build when config fails --- shellrc.d/dev | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/shellrc.d/dev b/shellrc.d/dev index b365b62..f07e782 100644 --- a/shellrc.d/dev +++ b/shellrc.d/dev @@ -22,25 +22,25 @@ _meson_setup() { } mbuild() { - _meson_setup - meson compile -C build "$@" + _meson_setup \ + && meson compile -C build "$@" } mtest() { - _meson_setup - meson test -C build "$@" + _meson_setup \ + && meson test -C build "$@" } mcoverage() { - _meson_setup - meson configure build -Db_coverage=true - meson test -C build "$@" - ninja -C build coverage-html + _meson_setup \ + && meson configure build -Db_coverage=true \ + && meson test -C build "$@" \ + && ninja -C build coverage-html } mdist() { - _meson_setup - meson dist -C build --formats xztar,gztar,zip "$@" + _meson_setup \ + && meson dist -C build --formats xztar,gztar,zip "$@" } fi -- cgit v1.2.3