aboutsummaryrefslogtreecommitdiff
path: root/Documentation/MANPAGE-render.bash
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/MANPAGE-render.bash')
-rwxr-xr-xDocumentation/MANPAGE-render.bash17
1 files changed, 12 insertions, 5 deletions
diff --git a/Documentation/MANPAGE-render.bash b/Documentation/MANPAGE-render.bash
index 138f4d6..2b7dd80 100755
--- a/Documentation/MANPAGE-render.bash
+++ b/Documentation/MANPAGE-render.bash
@@ -3,9 +3,16 @@
set -eu
cd $(dirname "$0")
-OUT=gocryptfs.1
+# 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
-# 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