From 524a66116b38a65210b7516781d26ed6efb690b9 Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Fri, 2 Feb 2024 18:20:37 +0100 Subject: Add MESONREWRITE to `meson dist` scripts Fixes #688 --- docs/yaml/builtins/meson.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs/yaml') diff --git a/docs/yaml/builtins/meson.yaml b/docs/yaml/builtins/meson.yaml index 0d4eacf60..516e41c3d 100644 --- a/docs/yaml/builtins/meson.yaml +++ b/docs/yaml/builtins/meson.yaml @@ -32,6 +32,17 @@ methods: scripts, but for subproject scripts they have the path to the root of the subproject appended, usually `subprojects/`. + *(since 1.4.0)* The `MESONREWRITE` environment variable contains the path + to the rewrite command that corresponds to the `meson` executable that + was used to configure the build. (This might be a different path than the + first executable found in `PATH`.) It can be used to remove or replace + any [[run_command]] that depends on the revision control system from the + build configuration. Note that the value will contain many parts. For + example, it may be `python3 /path/to/meson.py introspect`. The user is + responsible for splitting the string to an array if needed by splitting + lexically like a UNIX shell would. If your script uses Python, + `shlex.split()` is the easiest correct way to do this. + posargs: script_name: type: str | file | external_program -- cgit v1.2.3