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:
parent
7f0de69fe2
commit
4b1d080673
2
Documentation/.gitignore
vendored
Normal file
2
Documentation/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Generated man pages
|
||||||
|
*.1
|
@ -3,9 +3,16 @@
|
|||||||
set -eu
|
set -eu
|
||||||
cd $(dirname "$0")
|
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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user