| # Handy script to rebuild the markdown version of the man pages. |
| # This uses pandoc if it is installed. |
| # For rendering the md, we can use a different command: |
| # cd md; for x in *.md ; do pandoc -s $x --metadata pagetitle="${x%.md}" -o ${x%.md}.html --lua-filter=../md2html.lua ; done |
| if [[ -z "$(which pandoc)" ]]; then |
| echo "pandoc not found - skipping conversion" |
| if [[ -z "${outdir}" ]]; then |
| echo "failed to make output directory: ${outdir}" |
| index="${outdir}/index.md" |
| output="${base}-${sect}.md" |
| redir="$(grep '^.so man' "${m}")" |
| echo "* [${base}(${sect})](${rbase}-${rsect}.md)" >> "${index}" |
| pandoc -f man -t markdown < "${m}" | sed 's/\*\*\([^*]\+\)\*\*(\([138]\+\))/[\1(\2)](\1-\2.md)/g' > "${outdir}/${base}-${sect}.md" |
| echo "* [${base}(${sect})](${base}-${sect}.md)" >> "${index}" |
| # Manpages for libcap and libpsx |
| ## Individual reference pages |
| # Assumes the m's are listed alphabetically. |
| For further information, see the |
| [FullyCapable](https://sites.google.com/site/fullycapable/) homepage |
| These official man pages for libcap and libpsx were converted to |
| markdown using [pandoc](https://pandoc.org). |