libgocryptfs/Documentation/MANPAGE-render.bash
Jakob Unterwurzacher 4b1d080673 Update gocryptfs-xray manpage, have MANPAGE-render.bash generate both
have MANPAGE-render.bash generate both gocryptfs.1 and gocryptfs-xray.1
2019-01-04 20:12:07 +01:00

19 lines
350 B
Bash
Executable File

#!/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