Replace pandoc-based md-to-man conversion with a custom python script.

Hopefully this will appease the people who can't install pandoc on MacOS.
This commit is contained in:
Avery Pennarun 2011-01-29 23:20:05 -08:00
commit e174b09d5f
6 changed files with 371 additions and 5 deletions

View file

@ -1,5 +1,6 @@
if pandoc </dev/null 2>/dev/null; then
echo 'pandoc -s -r markdown -w man -o $3 $1.md.tmp'
redo-ifchange md2man.py
if ./md2man.py </dev/null >/dev/null 2>/dev/null; then
echo './md2man.py $1.md.tmp'
else
(IFS=:; for DIR in $PATH; do redo-ifcreate "$DIR/pandoc"; done)
echo "Warning: pandoc not installed; can't generate manpages." >&2