summaryrefslogtreecommitdiffstats
path: root/doc/convert-to-man
blob: 60761dbad4be1657d5459cfa37b5f09fe55e3eb0 (plain)
1
2
3
4
5
#!/bin/sh -e

pandoc -s -f markdown-smart -t man rg.1.md -o rg.1
sed -i.bak 's/\.TH.*/.TH "rg" "1"/g' rg.1
rm -f rg.1.bak # BSD `sed` requires the creation of a back-up file