diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2018-10-02 06:13:44 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-10-04 21:20:57 +0300 |
commit | c0c075c1298ad9018a62d75a632af1c0d0d7d0f8 (patch) | |
tree | cadf15c9de967df71bf047233790d722faf46ff1 /docs/markdown | |
parent | 577d6bfdb483452b2a9434ba3a1d7031094b0cbd (diff) | |
download | meson-c0c075c1298ad9018a62d75a632af1c0d0d7d0f8.zip meson-c0c075c1298ad9018a62d75a632af1c0d0d7d0f8.tar.gz meson-c0c075c1298ad9018a62d75a632af1c0d0d7d0f8.tar.bz2 |
Make custom dist scripts accept arguments.
meson.add_dist_script, introduced in #3906, did not accept any arguments
other than script name. Since all other meson.add_*_script methods
do accept args, this makes the dist script accept them as well.
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Reference-manual.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index a098b7b..0fb9f17 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -1433,14 +1433,14 @@ 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 +- `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. + error. Available since 0.48.0. Before 0.49.0, the function only accepted a single argument. - `add_install_script(script_name, arg1, arg2, ...)` causes the script given as an argument to be run during the install step, this script |