summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@herrb.eu>2024-05-05 10:59:11 +0200
committerMatthieu Herrb <matthieu@herrb.eu>2024-05-05 10:59:11 +0200
commited85f3d22352c8e469ed1e386af3926b4d63efcd (patch)
tree2162ff552f17fdd9f6c6eba479fa1f2498f99d19 /man
parent1e866201f1ccf8fa3bb22c6f5fa723b26c86dbe1 (diff)
parent79b0987e63daff97ce9ee1dce883df13668a80c6 (diff)
Merge remote-tracking branch 'origin/master' into obsd
Diffstat (limited to 'man')
-rw-r--r--man/Makefile.am2
-rw-r--r--man/meson.build24
2 files changed, 25 insertions, 1 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index f59d5b5..4af3a3e 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2005, Oracle and/or its affiliates.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
diff --git a/man/meson.build b/man/meson.build
new file mode 100644
index 0000000..40287d5
--- /dev/null
+++ b/man/meson.build
@@ -0,0 +1,24 @@
+custom_target(
+ 'twm.1',
+ build_by_default: true,
+ capture: true,
+ input: files('twm.man'),
+ output: 'twm.1',
+ install: true,
+ install_dir: get_option('mandir'),
+ command: [
+ find_program('sed'),
+ '@INPUT@',
+ '-e', 's#__appmansuffix__#1#g',
+ '-e', 's#__miscmansuffix__#7#g',
+ '-e', 's#__datadir__#@0@#g'.format(
+ get_option('prefix') / get_option('datadir')
+ ),
+ '-e', 's#__projectroot__#@0@#g'.format(
+ meson.project_source_root()
+ ),
+ '-e', 's#__xorgversion__#"twm @0@" "X Version 11"#g'.format(
+ meson.project_version()
+ ),
+ ],
+)