diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2023-02-06 17:55:54 -0800 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2023-02-06 18:01:43 -0800 |
commit | 27954dde34fcb8c306fa4d80fdbb5950f0949e03 (patch) | |
tree | fca62c01df95358f0250d49856f66e922bde9c7e | |
parent | cf91d35d62358ffe3d093356d640f7bbfe10e76f (diff) | |
download | libcap-27954dde34fcb8c306fa4d80fdbb5950f0949e03.tar.gz |
Provide a method to import preamble and postscript for md man pages
If you have local files:
.../libcap/doc/local-md.preamble
.../libcap/doc/local-md.postscript
when you run .../libcap/doc/mkmd.sh these two files will be inlined
into the generated index.md file.
This addresses:
https://bugzilla.kernel.org/show_bug.cgi?id=217007
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
-rwxr-xr-x | doc/mkmd.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/mkmd.sh b/doc/mkmd.sh index 39beac9..ce8baa2 100755 --- a/doc/mkmd.sh +++ b/doc/mkmd.sh @@ -50,6 +50,14 @@ function do_page () { cat > "${index}" <<EOF # Manpages for libcap and libpsx +EOF + +if [[ -f "local-md.preamble" ]]; then + cat "local-md.preamble" >> "${index}" +fi + +cat >> "${index}" <<EOF + ## Individual reference pages EOF @@ -69,6 +77,14 @@ cat >> "${index}" <<EOF ## More information +EOF + +if [[ -f "local-md.postscript" ]]; then + cat "local-md.postscript" >> "${index}" +fi + +cat >> "${index}" <<EOF + For further information, see the [FullyCapable](https://sites.google.com/site/fullycapable/) homepage for libcap. |