diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-31 07:53:03 -0400 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-31 18:47:09 -0400 |
| commit | a572ebd2a19ff9501e3c03b0cec71f5a5aef5ceb (patch) | |
| tree | 1a391342821a8e1e896731a5f8ff2f7dc43be39c /test cases | |
| parent | 1826872fd25cf72ec65378891125a264e625da88 (diff) | |
| download | meson-a572ebd2a19ff9501e3c03b0cec71f5a5aef5ceb.tar.gz | |
Convert man inputs to Files so you can install_man the output of configure_file. Closes #2135.
Diffstat (limited to 'test cases')
| -rw-r--r-- | test cases/common/10 man install/baz.1.in | 6 | ||||
| -rw-r--r-- | test cases/common/10 man install/installed_files.txt | 1 | ||||
| -rw-r--r-- | test cases/common/10 man install/meson.build | 8 |
3 files changed, 15 insertions, 0 deletions
diff --git a/test cases/common/10 man install/baz.1.in b/test cases/common/10 man install/baz.1.in new file mode 100644 index 000000000..d0b79b43e --- /dev/null +++ b/test cases/common/10 man install/baz.1.in @@ -0,0 +1,6 @@ +This is a man page of baz.1 it was generated @TODAY@. + +You should not put generation timestamps in real world projects +because they break reproducible builds. This manpage is written +by professionals or under the supervision of professionals. Do +not try this at home. diff --git a/test cases/common/10 man install/installed_files.txt b/test cases/common/10 man install/installed_files.txt index 7b1961628..c13baa4c0 100644 --- a/test cases/common/10 man install/installed_files.txt +++ b/test cases/common/10 man install/installed_files.txt @@ -2,3 +2,4 @@ usr/share/man/man1/foo.1.gz usr/share/man/man2/bar.2.gz usr/share/man/man1/vanishing.1.gz usr/share/man/man2/vanishing.2.gz +usr/share/man/man1/baz.1.gz diff --git a/test cases/common/10 man install/meson.build b/test cases/common/10 man install/meson.build index 8436fa588..8262ffc88 100644 --- a/test cases/common/10 man install/meson.build +++ b/test cases/common/10 man install/meson.build @@ -3,3 +3,11 @@ m1 = install_man('foo.1') m2 = install_man('bar.2') install_man('vanishing/vanishing.2') subdir('vanishing') + +cdata = configuration_data() +cdata.set('TODAY', '$this_day') +b1 = configure_file(input : 'baz.1.in', + output : 'baz.1', + configuration : cdata) + +install_man(b1) |
