aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/10 man install
diff options
context:
space:
mode:
authorAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
committerAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
commitaf1a266670d040d2f4083ff309d732d648afba2a (patch)
tree2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/common/10 man install
parente02cda008591317b1625707ff8e115a4841aa889 (diff)
Add submodule dependency filesHEADmaster
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/common/10 man install')
-rw-r--r--meson/test cases/common/10 man install/bar.21
-rw-r--r--meson/test cases/common/10 man install/baz.1.in6
-rw-r--r--meson/test cases/common/10 man install/foo.11
-rw-r--r--meson/test cases/common/10 man install/foo.fr.11
-rw-r--r--meson/test cases/common/10 man install/meson.build14
-rw-r--r--meson/test cases/common/10 man install/test.json10
-rw-r--r--meson/test cases/common/10 man install/vanishing/meson.build1
-rw-r--r--meson/test cases/common/10 man install/vanishing/vanishing.11
-rw-r--r--meson/test cases/common/10 man install/vanishing/vanishing.21
9 files changed, 36 insertions, 0 deletions
diff --git a/meson/test cases/common/10 man install/bar.2 b/meson/test cases/common/10 man install/bar.2
new file mode 100644
index 000000000..9d82d7e15
--- /dev/null
+++ b/meson/test cases/common/10 man install/bar.2
@@ -0,0 +1 @@
+this is a man page of bar.2, its contents are irrelevant \ No newline at end of file
diff --git a/meson/test cases/common/10 man install/baz.1.in b/meson/test cases/common/10 man install/baz.1.in
new file mode 100644
index 000000000..d0b79b43e
--- /dev/null
+++ b/meson/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/meson/test cases/common/10 man install/foo.1 b/meson/test cases/common/10 man install/foo.1
new file mode 100644
index 000000000..647c0970c
--- /dev/null
+++ b/meson/test cases/common/10 man install/foo.1
@@ -0,0 +1 @@
+this is a man page of foo.1 its contents are irrelevant
diff --git a/meson/test cases/common/10 man install/foo.fr.1 b/meson/test cases/common/10 man install/foo.fr.1
new file mode 100644
index 000000000..647c0970c
--- /dev/null
+++ b/meson/test cases/common/10 man install/foo.fr.1
@@ -0,0 +1 @@
+this is a man page of foo.1 its contents are irrelevant
diff --git a/meson/test cases/common/10 man install/meson.build b/meson/test cases/common/10 man install/meson.build
new file mode 100644
index 000000000..05c52782e
--- /dev/null
+++ b/meson/test cases/common/10 man install/meson.build
@@ -0,0 +1,14 @@
+project('man install', 'c')
+m1 = install_man('foo.1')
+m2 = install_man('bar.2')
+m3 = install_man('foo.fr.1', locale: 'fr')
+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)
diff --git a/meson/test cases/common/10 man install/test.json b/meson/test cases/common/10 man install/test.json
new file mode 100644
index 000000000..5ef673a28
--- /dev/null
+++ b/meson/test cases/common/10 man install/test.json
@@ -0,0 +1,10 @@
+{
+ "installed": [
+ { "type": "file", "file": "usr/share/man/man1/foo.1" },
+ { "type": "file", "file": "usr/share/man/fr/man1/foo.1" },
+ { "type": "file", "file": "usr/share/man/man2/bar.2" },
+ { "type": "file", "file": "usr/share/man/man1/vanishing.1" },
+ { "type": "file", "file": "usr/share/man/man2/vanishing.2" },
+ { "type": "file", "file": "usr/share/man/man1/baz.1" }
+ ]
+}
diff --git a/meson/test cases/common/10 man install/vanishing/meson.build b/meson/test cases/common/10 man install/vanishing/meson.build
new file mode 100644
index 000000000..101545039
--- /dev/null
+++ b/meson/test cases/common/10 man install/vanishing/meson.build
@@ -0,0 +1 @@
+install_man('vanishing.1')
diff --git a/meson/test cases/common/10 man install/vanishing/vanishing.1 b/meson/test cases/common/10 man install/vanishing/vanishing.1
new file mode 100644
index 000000000..532608e8f
--- /dev/null
+++ b/meson/test cases/common/10 man install/vanishing/vanishing.1
@@ -0,0 +1 @@
+This is a man page of the vanishing subdirectory.
diff --git a/meson/test cases/common/10 man install/vanishing/vanishing.2 b/meson/test cases/common/10 man install/vanishing/vanishing.2
new file mode 100644
index 000000000..d12f76ac8
--- /dev/null
+++ b/meson/test cases/common/10 man install/vanishing/vanishing.2
@@ -0,0 +1 @@
+This is a second man page of the vanishing subdirectory.