File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ the Void documentation and the `void-docs.1` man page. It requires the following
1212Void packages:
1313
1414- ` mdBook `
15- - ` fd `
15+ - ` findutils `
1616- ` pandoc `
1717- ` texlive `
1818- ` perl `
Original file line number Diff line number Diff line change @@ -14,11 +14,9 @@ echo "Building man pages"
1414mkdir -p mandoc
1515cd src
1616
17- fd -t d " " ./ -x mkdir -p " ../mandoc/{}"
18-
19- fd " \.md" ./ -x pandoc \
20- -V " title={/.}" -V " section=7" -V " header=Void Docs" -s \
21- -o " ../mandoc/{.}.7" " {}"
17+ find . -type d -exec mkdir -p " ../mandoc/{}" \;
18+ find . -type f -name " *.md" -exec sh -c \
19+ ' file="{}"; filew="${file%.md}"; pandoc -V "title=${filew##*/}" -V section=7 -V "header=Void Docs" -s -o "../mandoc/${filew}.7" "$file"' \;
2220
2321cd -
2422
You can’t perform that action at this time.
0 commit comments