summaryrefslogtreecommitdiff
path: root/docs/markdown/Reference-manual.md
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-07-18 17:11:57 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2018-08-15 00:42:25 +0300
commitfeb38a7aa8173f669d6d0bf975c37f4550083a2f (patch)
treea0fdb5dc105b31d05a9ec1acea8f8e7587ba874e /docs/markdown/Reference-manual.md
parent4f088365e49d28e0d413d42eb024c3ff6cbfee35 (diff)
downloadmeson-distscript.tar.gz
Add support for custom dist scripts.distscript
Diffstat (limited to 'docs/markdown/Reference-manual.md')
-rw-r--r--docs/markdown/Reference-manual.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 3ae740df8..a0c75a74d 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -1405,6 +1405,15 @@ 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` 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.
+
- `add_install_script(script_name, arg1, arg2, ...)` causes the script
given as an argument to be run during the install step, this script
will have the environment variables `MESON_SOURCE_ROOT`,