Update gocryptfs-xray manpage, have MANPAGE-render.bash generate both

have MANPAGE-render.bash generate both gocryptfs.1 and gocryptfs-xray.1
This commit is contained in:
Jakob Unterwurzacher 2019-01-04 19:56:03 +01:00
parent 7f0de69fe2
commit 4b1d080673
2 changed files with 14 additions and 5 deletions

2
Documentation/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
# Generated man pages
*.1

View File

@ -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