apenwarr-redo/Documentation/md-to-man.do
Avery Pennarun e174b09d5f 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.
2011-01-29 23:27:23 -08:00

8 lines
282 B
Text

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
echo 'echo Skipping: $1.1 >&2'
fi