diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2024-03-02 00:59:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-02 00:59:32 +0200 |
| commit | 54996132af6d0feaef6afd943c94ff25911ca67b (patch) | |
| tree | 7981fd0fedd247c91a40adf9e9a7716e1ffba892 /docs/yaml | |
| parent | cc4cfbcad92945a1629c80664e1eb755c68905dd (diff) | |
| parent | 524a66116b38a65210b7516781d26ed6efb690b9 (diff) | |
| download | meson-54996132af6d0feaef6afd943c94ff25911ca67b.tar.gz | |
Merge pull request #12804 from joukewitteveen/dist-rewriter
Support `meson dist` when getting project versions from VCS
Diffstat (limited to 'docs/yaml')
| -rw-r--r-- | docs/yaml/builtins/meson.yaml | 11 |
1 files changed, 11 insertions, 0 deletions
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/<subproject-name>`. + *(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 |
