libgocryptfs/Documentation/MANPAGE-render.bash
2021-09-01 10:22:01 +02:00

19 lines
397 B
Bash
Executable File

#!/bin/bash
set -eu
cd "$(dirname "$0")"
# Render Markdown to a proper man(1) manpage
render() {
IN=$1
OUT=$2
echo "Rendering $IN to $OUT"
echo ".\\\" This man page was generated from $IN. View it using 'man ./$OUT'" > "$OUT"
echo ".\\\"" >> "$OUT"
pandoc "$IN" -s -t man >> "$OUT"
}
render MANPAGE.md gocryptfs.1
render MANPAGE-XRAY.md gocryptfs-xray.1
render MANPAGE-STATFS.md statfs.1