diff options
Diffstat (limited to 'doc/convert-to-man')
-rwxr-xr-x | doc/convert-to-man | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/convert-to-man b/doc/convert-to-man index 7afa441b..eeb252e2 100755 --- a/doc/convert-to-man +++ b/doc/convert-to-man @@ -1,4 +1,5 @@ -#!/bin/sh +#!/bin/sh -e pandoc -s -t man rg.1.md -o rg.1 -sed -i 's/\.TH.*/.TH "rg" "1"/g' 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 |