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.
This commit is contained in:
Michael Stone 2011-01-16 16:21:14 -08:00 committed by Avery Pennarun
commit 62fe9a0df5

View file

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