aboutsummaryrefslogtreecommitdiff
path: root/aux/chdir_meson_build_subdir.sh
diff options
context:
space:
mode:
Diffstat (limited to 'aux/chdir_meson_build_subdir.sh')
-rwxr-xr-xaux/chdir_meson_build_subdir.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/aux/chdir_meson_build_subdir.sh b/aux/chdir_meson_build_subdir.sh
new file mode 100755
index 00000000..69c32fcb
--- /dev/null
+++ b/aux/chdir_meson_build_subdir.sh
@@ -0,0 +1,6 @@
+#!/bin/sh -efu
+
+exe=$1; shift
+exe=$(readlink -ev -- "$exe")
+cd "$MESON_BUILD_SUBDIR"
+exec "$exe" "$@"