This way, if you run ./redo $PKGMGR install pandoc ./redo you'll still wind up with man pages.
7 lines
261 B
Text
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
|