aboutsummaryrefslogtreecommitdiff
path: root/Documentation
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
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')
-rw-r--r--Documentation/.gitignore2
-rwxr-xr-xDocumentation/MANPAGE-render.bash17
2 files changed, 14 insertions, 5 deletions
diff --git a/Documentation/.gitignore b/Documentation/.gitignore
new file mode 100644
index 0000000..d2f316c
--- /dev/null
+++ b/Documentation/.gitignore
@@ -0,0 +1,2 @@
+# Generated man pages
+*.1
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