aboutsummaryrefslogtreecommitdiff
path: root/Documentation/MANPAGE-render.bash
blob: 2b7dd805088f2ac3492860348576894fcd44ad83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

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

# Render Markdown to a proper man(1) manpage
function render {
	IN=$1
	OUT=$2
	echo "Rendering $IN to $OUT"
	echo ".\\\" This is a man page. View it using 'man ./$OUT'" > $OUT
	echo ".\\\"" >> $OUT
	pandoc MANPAGE.md -s -t man >> $OUT
}

render MANPAGE.md gocryptfs.1
render MANPAGE-XRAY.md gocryptfs-xray.1