From 82b9e5a554f7ab1229ab6cd57cec24f46536e2de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 29 Sep 2022 11:09:08 +0200 Subject: dev: expand m* shortcuts --- shellrc.d/dev | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 "$@" +} -- cgit v1.2.3