aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2020-01-20 22:10:46 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2020-01-23 02:25:52 +0200
commit254cb3209d74a9758ec5a752c7812b7180a8fbcb (patch)
tree2968fd591a00b68e6ea7f26057f90f1bf7c3ab43 /docs/markdown
parenta55e3434c52d53381d17a208acd2a3603913f8e5 (diff)
downloadmeson-254cb3209d74a9758ec5a752c7812b7180a8fbcb.zip
meson-254cb3209d74a9758ec5a752c7812b7180a8fbcb.tar.gz
meson-254cb3209d74a9758ec5a752c7812b7180a8fbcb.tar.bz2
Set source and build dir envvars when running dist.
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/Reference-manual.md19
1 files changed, 11 insertions, 8 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index d8a8d11..57e2bc1 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -1691,14 +1691,17 @@ The `meson` object allows you to introspect various properties of the
system. This object is always mapped in the `meson` variable. It has
the following methods.
-- `add_dist_script(script_name, arg1, arg, ...)` causes the script given as argument to run during
- `dist` operation after the distribution source has been generated
- but before it is archived. Note that this runs the script file that
- is in the _staging_ directory, not the one in the source
- directory. If the script file can not be found in the staging
- directory, it is a hard error. This command can only invoked from
- the main project, calling it from a subproject is a hard
- error. Available since 0.48.0. Before 0.49.0, the function only accepted a single argument.
+- `add_dist_script(script_name, arg1, arg, ...)` causes the script
+ given as argument to run during `dist` operation after the
+ distribution source has been generated but before it is
+ archived. Note that this runs the script file that is in the
+ _staging_ directory, not the one in the source directory. If the
+ script file can not be found in the staging directory, it is a hard
+ error. This command can only invoked from the main project, calling
+ it from a subproject is a hard error. Available since 0.48.0. Before
+ 0.49.0, the function only accepted a single argument. Since 0.54.0
+ the `MESON_SOURCE_ROOT` and `MESON_BUILD_ROOT` environment variables
+ are set when dist scripts are run.
- `add_install_script(script_name, arg1, arg2, ...)` causes the script
given as an argument to be run during the install step, this script