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:
parent
a5536fb25b
commit
62fe9a0df5
1 changed files with 1 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue