summaryrefslogtreecommitdiff
path: root/Documentation/MANPAGE-render.bash
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-01-04 19:56:03 +0100
committerJakob Unterwurzacher2019-01-04 20:12:07 +0100
commit4b1d080673603e506e3d22a04f7f98f4bc3915e1 (patch)
tree40ed04dfe420fb7f91ec16fa6a3cbc411574853f /Documentation/MANPAGE-render.bash
parent7f0de69fe263aa6972a3e38b2e41091878bc6f0f (diff)
Update gocryptfs-xray manpage, have MANPAGE-render.bash generate both
have MANPAGE-render.bash generate both gocryptfs.1 and gocryptfs-xray.1
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