3# iterates recursively over specified directory, tries to convert
4# man pages and prints to stderr on errors.
6# if called with two arguments, the first is the path to pandoc,
7# and the second is the directory. if with one argument, it
8# is the directory, and pandoc is used from path.
13elif [ $# -eq 1 ]; then
17 echo "Not enough arguments"
21$PANDOC --version > /dev/null || { echo "pandoc executable error" >&2 ; exit 1 ; }
23for f in `find "$DIR" -name '*.[0-9]'`; do
24 ( iconv -f utf8 -t utf8 $f 2>/dev/null || iconv -f latin1 -t utf8 $f ) | \
25 $PANDOC --resource-path "$DIR":"$(dirname $f)" -f man -o /dev/null || echo "Failed to convert $f"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list