aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-09-29 11:09:08 +0200
committerKarel Kočí <cynerd@email.cz>2022-09-29 11:11:10 +0200
commit82b9e5a554f7ab1229ab6cd57cec24f46536e2de (patch)
tree3887fa0c3fcca41f32b569517025b593543a49d4
parent7317c5dfef21349f61729b2df60233a2b817bc09 (diff)
downloadshellrc-82b9e5a554f7ab1229ab6cd57cec24f46536e2de.tar.gz
shellrc-82b9e5a554f7ab1229ab6cd57cec24f46536e2de.tar.bz2
shellrc-82b9e5a554f7ab1229ab6cd57cec24f46536e2de.zip
dev: expand m* shortcuts
-rw-r--r--shellrc.d/dev16
1 files changed, 15 insertions, 1 deletions
diff --git a/shellrc.d/dev b/shellrc.d/dev
index c528dac..148ef24 100644
--- a/shellrc.d/dev
+++ b/shellrc.d/dev
@@ -8,9 +8,23 @@ massif() {
valgrind --tool=massif "$@"
}
-mbuild() {
+_meson_setup() {
if [ ! -f "build/build.ninja" ]; then
meson setup build
fi
+}
+
+mbuild() {
+ _meson_setup
meson compile -C build "$@"
}
+
+mtest() {
+ _meson_setup
+ meson test -C build "$@"
+}
+
+mdist() {
+ _meson_setup
+ meson dist -C build --formats xztar,gztar,zip "$@"
+}