summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/run_script_dry_run.md
blob: aee32c72c93b503c2518ff9fa3d97bd19e607fb6 (plain)
1
2
3
4
5
6
7
8
## Allow custom install scripts to run with `--dry-run` option

An new `dry_run` keyword is added to `meson.add_install_script()`
to allow a custom install script to run when meson is invoked
with `meson install --dry-run`. 

In dry run mode, the `MESON_INSTALL_DRY_RUN` environment variable
is set.