aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2021-01-29 15:18:12 -0500
committerJussi Pakkanen <jpakkane@gmail.com>2021-01-30 21:28:21 +0000
commit6c6b5d77d696c160a8f65719058dba2faf783b3e (patch)
tree74e172d60ee634e1a7dd344b75c883841749aad2 /docs/markdown/snippets
parentc491d48b9d081125f242227ff9e543abbbb838d8 (diff)
downloadmeson-6c6b5d77d696c160a8f65719058dba2faf783b3e.zip
meson-6c6b5d77d696c160a8f65719058dba2faf783b3e.tar.gz
meson-6c6b5d77d696c160a8f65719058dba2faf783b3e.tar.bz2
add_install_script: add skip_if_destdir kwarg
It is common, at least in GNOME projects, to have scripts that must be run only in the final destination, to update system icon cache, etc. Skipping them from Meson ensures we can properly log that they have not been run instead of relying on such scripts to to it (they don't always).
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/destdir.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/markdown/snippets/destdir.md b/docs/markdown/snippets/destdir.md
new file mode 100644
index 0000000..d8cf55d
--- /dev/null
+++ b/docs/markdown/snippets/destdir.md
@@ -0,0 +1,11 @@
+## Specify DESTDIR on command line
+
+`meson install` command now has `--destdir` argument that overrides DESTDIR
+from environment.
+
+## Skip install scripts if DESTDIR is set
+
+`meson.add_install_script()` now has `skip_if_destdir` keyword argument. If set
+to `true` the script won't be run if DESTDIR is set during installation. This is
+useful in the case the script updates system wide cache that is only needed when
+copying files into final destination.