diff options
Diffstat (limited to 'doc/mkmd.sh')
-rwxr-xr-x | doc/mkmd.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/mkmd.sh b/doc/mkmd.sh index af835d5..ce8baa2 100755 --- a/doc/mkmd.sh +++ b/doc/mkmd.sh @@ -32,6 +32,8 @@ function do_page () { sect="${m#*.}" output="${base}-${sect}.md" + echo "converting ${m}" 1>&2 + redir="$(grep '^.so man' "${m}")" if [[ $? -eq 0 ]]; then r="${redir#*/}" @@ -48,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 @@ -67,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. |