Skip to content

Commit c2cc557

Browse files
committed
res/build.sh: use find(1) instead of fd(1).
1 parent 56f8df5 commit c2cc557

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ the Void documentation and the `void-docs.1` man page. It requires the following
1212
Void packages:
1313

1414
- `mdBook`
15-
- `fd`
15+
- `findutils`
1616
- `pandoc`
1717
- `texlive`
1818
- `perl`

res/build.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ echo "Building man pages"
1414
mkdir -p mandoc
1515
cd 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

2321
cd -
2422

0 commit comments

Comments
 (0)