apenwarr-redo/Documentation/md-to-man.do
Michael Stone 62fe9a0df5 md-to-man.do: redo-ifcreate on possible paths to pandoc
This way, if you run

  ./redo
  $PKGMGR install pandoc
  ./redo

you'll still wind up with man pages.
2011-01-16 16:21:48 -08:00

7 lines
261 B
Text

if pandoc </dev/null 2>/dev/null; then
echo 'pandoc -s -r markdown -w man -o $3 $1.md'
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