apenwarr-redo/Documentation/md-to-man.do

7 lines
265 B
Text
Raw Normal View History

2010-12-12 01:59:26 -08:00
if pandoc </dev/null 2>/dev/null; then
echo 'pandoc -s -r markdown -w man -o $3 $1.md.tmp'
2010-12-12 01:59:26 -08:00
else
(IFS=:; for DIR in $PATH; do redo-ifcreate "$DIR/pandoc"; done)
2010-12-12 01:59:26 -08:00
echo "Warning: pandoc not installed; can't generate manpages." >&2
echo 'echo Skipping: $1.1 >&2'
fi