diff options
author | Sam Hartman <hartmans@debian.org> | 2024-12-02 09:55:34 -0700 |
---|---|---|
committer | Sam Hartman <hartmans@debian.org> | 2024-12-02 09:55:34 -0700 |
commit | 4f3cfaf827bfa42a239c255092a128a3a02198bf (patch) | |
tree | eac7f023f043739b79b2a51bd68c3006acb12964 /doc/guide-meson.build | |
parent | 6408d4b1baff9a7e58fd66e1d1c0871be0823777 (diff) | |
parent | 7c9fb6472dcfae34ddbf4fbc9ecfafae2cf173c3 (diff) | |
download | pam-4f3cfaf827bfa42a239c255092a128a3a02198bf.tar.gz pam-4f3cfaf827bfa42a239c255092a128a3a02198bf.tar.bz2 pam-4f3cfaf827bfa42a239c255092a128a3a02198bf.zip |
Update upstream source from tag 'upstream/1.7.0'
Update to upstream version '1.7.0'
with Debian dir 0b3cd490884352e14273caeca2f05c6a525499fa
Diffstat (limited to 'doc/guide-meson.build')
-rw-r--r-- | doc/guide-meson.build | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/doc/guide-meson.build b/doc/guide-meson.build new file mode 100644 index 00000000..e29d16e2 --- /dev/null +++ b/doc/guide-meson.build @@ -0,0 +1,90 @@ +# -*- mode: meson -*- + +guide = fs.name(meson.current_source_dir()).to_upper() +name = 'Linux-PAM_' + guide + +xml = files(name + '.xml') + +if guide == 'SAG' + toc_max_depth = '2' +else + toc_max_depth = '3' +endif + + +run_command( + [prog_xmllint, + '--noent', + '--nonet', + '--noout', + '--xinclude', + '--relaxng', docbook_rng, + xml], + check: true, +) + + +html = custom_target( + input: xml, + output: name + '.html', + command: [ + prog_xsltproc, + '-o', '@OUTPUT@', + '--nonet', + '--xinclude', + '--stringparam', 'generate.toc', 'book toc', + '--stringparam', 'section.autolabel', '1', + '--stringparam', 'section.label.includes.component.label', '1', + '--stringparam', 'toc.max.depth', toc_max_depth, + txt_stylesheet, + '@INPUT@', + ], +) + +custom_target( + input: html, + output: name + '.txt', + command: [ + redir_exe, + '@INPUT@', + '@OUTPUT@', + browser, + ], + install: true, + install_dir: docdir, + install_tag: 'doc', +) + + +fop = custom_target( + input: xml, + output: name + '.fop', + command: [ + prog_xsltproc, + '-o', '@OUTPUT@', + '--nonet', + '--xinclude', + '--stringparam', 'generate.toc', 'book toc', + '--stringparam', 'section.autolabel', '1', + '--stringparam', 'section.label.includes.component.label', '1', + '--stringparam', 'toc.max.depth', toc_max_depth, + pdf_stylesheet, + '@INPUT@', + ], +) + +custom_target( + input: fop, + output: name + '.pdf', + command: [ + prog_fop, + '@INPUT@', + '@OUTPUT@', + ], + install: true, + install_dir: pdfdir, + install_tag: 'doc', +) + + +subdir('html') |