aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-04-26 23:14:00 +0300
committerGitHub <noreply@github.com>2018-04-26 23:14:00 +0300
commit9b0453d3e937195ca234963182dc1b5a61a13f23 (patch)
tree56bde337fe06e8726af04676c0a386cd15be6e62 /docs/markdown
parent9c073620aa351c4075aa838fa5003ee0fc8ec17a (diff)
parent170776d626373762b220aad8ac7e5b57f18156ed (diff)
downloadmeson-9b0453d3e937195ca234963182dc1b5a61a13f23.zip
meson-9b0453d3e937195ca234963182dc1b5a61a13f23.tar.gz
meson-9b0453d3e937195ca234963182dc1b5a61a13f23.tar.bz2
Merge pull request #3225 from filbranden/fixperms3
Introduce install_umask to determine permissions of files in install tree. Default it to 022
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/snippets/install_umask.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/markdown/snippets/install_umask.md b/docs/markdown/snippets/install_umask.md
new file mode 100644
index 0000000..b3a2427
--- /dev/null
+++ b/docs/markdown/snippets/install_umask.md
@@ -0,0 +1,17 @@
+## New built-in option install_umask with a default value 022
+
+This umask is used to define the default permissions of files and directories
+created in the install tree. Files will preserve their executable mode, but the
+exact permissions will obey the install_umask.
+
+The install_umask can be overridden in the meson command-line:
+
+ $ meson --install-umask=027 builddir/
+
+A project can also override the default in the project() call:
+
+ project('myproject', 'c',
+ default_options : ['install_umask=027'])
+
+To disable the install_umask, set it to 'preserve', in which case permissions
+are copied from the files in their origin.