diff options
Diffstat (limited to 'test cases/common/12 data/meson.build')
-rw-r--r-- | test cases/common/12 data/meson.build | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test cases/common/12 data/meson.build b/test cases/common/12 data/meson.build new file mode 100644 index 0000000..d318633 --- /dev/null +++ b/test cases/common/12 data/meson.build @@ -0,0 +1,24 @@ +project('data install test', + default_options : ['install_umask=preserve']) +install_data(sources : 'datafile.dat', install_dir : 'share/progname') +# Some file in /etc that is only read-write by root; add a sticky bit for testing +install_data(sources : 'etcfile.dat', install_dir : '/etc', install_mode : 'rw------T') +# Some script that needs to be executable by the group +install_data('runscript.sh', + install_dir : get_option('bindir'), + install_mode : ['rwxr-sr-x', 'root', 0]) +install_data(files('fileobject_datafile.dat'), + install_dir : 'share/progname', + install_mode : [false, false, 0]) + +install_data(files('somefile.txt')) + +subdir('vanishing') + +install_data(sources : 'vanishing/vanishing2.dat', install_dir : 'share/progname') + +install_data(sources : 'to_be_renamed_1.txt', rename : 'renamed file.txt') +install_data(sources : ['vanishing/to_be_renamed_2.txt', 'to_be_renamed_3.txt'], + install_dir : 'share/renamed', + rename : ['renamed 2.txt', 'renamed 3.txt']) +install_data(sources : 'to_be_renamed_4.txt', rename : 'some/nested/path.txt') |