summaryrefslogtreecommitdiff
path: root/Documentation/MANPAGE-render.bash
blob: 138f4d6c2d11e6c685122e52b3fc6e922a450e73 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

set -eu
cd $(dirname "$0")

OUT=gocryptfs.1

# Render MANPAGE.md to a proper man(1) manpage
echo ".\\\" This is a man page. View it using 'man ./$OUT'" > $OUT
echo ".\\\"" >> $OUT
pandoc MANPAGE.md -s -t man >> $OUT && man ./gocryptfs.1