diff options
Diffstat (limited to 'shellrc.d')
-rw-r--r-- | shellrc.d/dev | 16 |
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 "$@" +} |