]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: add generation of man pages to meson.build 14487/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 17 Jul 2024 14:12:03 +0000 (16:12 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 24 Jul 2024 08:12:48 +0000 (10:12 +0200)
pdns/recursordist/docs/generate-man-pages.py [new symlink]
pdns/recursordist/meson.build

diff --git a/pdns/recursordist/docs/generate-man-pages.py b/pdns/recursordist/docs/generate-man-pages.py
new file mode 120000 (symlink)
index 0000000..c19dc3b
--- /dev/null
@@ -0,0 +1 @@
+../../../docs/generate-man-pages.py
\ No newline at end of file
index 08bcd6498c6ab7f52e861fed4ba64ab96bd5e31c..732e605b79c061ff13154927eb88de7fa6916899 100644 (file)
@@ -525,3 +525,24 @@ foreach tool, info: tools
   endif
 endforeach
 
+# Man-pages.
+py = import('python')
+python = py.find_installation('python3', modules: 'venv', required: false)
+
+summary('Python', python.found(), bool_yn: true, section: 'Manual Pages')
+summary('Path', python.full_path(), section: 'Manual Pages')
+summary('Version', python.version(), section: 'Manual Pages')
+
+if python.found()
+  run_target(
+    'man-pages',
+    command: [
+      python,
+      product_source_dir / docs_dir / 'generate-man-pages.py',
+      '--venv-name', 'venv-rec-man-pages',
+      '--requirements-file', docs_dir / 'requirements.txt',
+      '--source-directory', docs_dir,
+      '--target-directory', 'rec-man-pages',
+    ] + man_pages,
+  )
+endif