libgocryptfs/Documentation/MANPAGE-render.bash

19 lines
397 B
Bash
Raw Normal View History

#!/bin/bash
set -eu
2021-08-31 19:01:47 +02:00
cd "$(dirname "$0")"
# Render Markdown to a proper man(1) manpage
2021-08-31 19:01:47 +02:00
render() {
IN=$1
OUT=$2
echo "Rendering $IN to $OUT"
2021-08-31 19:01:47 +02:00
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
2019-09-06 18:43:54 +02:00
render MANPAGE-STATFS.md statfs.1