diff options
author | Karel Kočí <cynerd@email.cz> | 2022-09-20 09:46:43 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-09-20 09:47:14 +0200 |
commit | 342ba9f696861a19ab728571589019174db173cc (patch) | |
tree | f32116d86b3483656d36e09c41a1afb8c3ff006e | |
parent | df236ff2debfa30b681c02f023f75560d44143af (diff) | |
download | shellrc-342ba9f696861a19ab728571589019174db173cc.tar.gz shellrc-342ba9f696861a19ab728571589019174db173cc.tar.bz2 shellrc-342ba9f696861a19ab728571589019174db173cc.zip |
dev: add mbuild to simply compile meson projects in build directory
-rw-r--r-- | shellrc.d/dev | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shellrc.d/dev b/shellrc.d/dev index d14211b..7815658 100644 --- a/shellrc.d/dev +++ b/shellrc.d/dev @@ -7,3 +7,10 @@ memcheck() { massif() { valgrind --tool=massif "$@" } + +mbuild() { + if [ ! -d "build" ]; then + meson setup build + fi + meson compile -C build "$@" +} |