diff options
author | Karel Kočí <cynerd@email.cz> | 2022-12-21 14:25:35 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-12-21 14:25:35 +0100 |
commit | 3ec7f745b41b709816f936eb2c400626bb6f7d86 (patch) | |
tree | 9b36ac8880a20c2b4938c54b1b6666687c14639b | |
parent | 41b41e92fed1615508101d588e93b8ec84ea8f02 (diff) | |
download | shellrc-3ec7f745b41b709816f936eb2c400626bb6f7d86.tar.gz shellrc-3ec7f745b41b709816f936eb2c400626bb6f7d86.tar.bz2 shellrc-3ec7f745b41b709816f936eb2c400626bb6f7d86.zip |
dev: do not continue with build when config fails
-rw-r--r-- | shellrc.d/dev | 20 |
1 files 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 |