aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-12-21 14:25:35 +0100
committerKarel Kočí <cynerd@email.cz>2022-12-21 14:25:35 +0100
commit3ec7f745b41b709816f936eb2c400626bb6f7d86 (patch)
tree9b36ac8880a20c2b4938c54b1b6666687c14639b
parent41b41e92fed1615508101d588e93b8ec84ea8f02 (diff)
downloadshellrc-3ec7f745b41b709816f936eb2c400626bb6f7d86.tar.gz
shellrc-3ec7f745b41b709816f936eb2c400626bb6f7d86.tar.bz2
shellrc-3ec7f745b41b709816f936eb2c400626bb6f7d86.zip
dev: do not continue with build when config fails
-rw-r--r--shellrc.d/dev20
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