From 0084087d35cd8eed4b9a1fa39f532beb612c9c21 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 11 Nov 2015 09:15:14 +0100 Subject: [PATCH] Add MANPAGE.md and MANPAGE-render.bash MANPAGE-render.bash renders the markdown to a proper man(1) manpage --- .gitignore | 5 +++- MANPAGE-render.bash | 7 +++++ MANPAGE.md | 71 +++++++++++++++++++++++++++++++++++++++++++++ USAGE.txt | 24 --------------- 4 files changed, 82 insertions(+), 25 deletions(-) create mode 100755 MANPAGE-render.bash create mode 100644 MANPAGE.md delete mode 100644 USAGE.txt diff --git a/.gitignore b/.gitignore index 69001ac..051ac5e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -# binary +# the gocryptfs executable /gocryptfs # temporary files created by the tests @@ -6,3 +6,6 @@ # binary releases /*.tar.gz + +# manpage generated by MANPAGE-render.bash +/gocryptfs.1 diff --git a/MANPAGE-render.bash b/MANPAGE-render.bash new file mode 100755 index 0000000..9ea268d --- /dev/null +++ b/MANPAGE-render.bash @@ -0,0 +1,7 @@ +#!/bin/bash + +set -eux + +# Render MANPAGE.md to a proper man(1) manpage + +pandoc MANPAGE.md -s -t man -o gocryptfs.1 && man ./gocryptfs.1 diff --git a/MANPAGE.md b/MANPAGE.md new file mode 100644 index 0000000..14bf188 --- /dev/null +++ b/MANPAGE.md @@ -0,0 +1,71 @@ +% GOCRYPTFS(1) +% github.com/rfjakob +% Nov 2015 + +NAME +==== + +gocryptfs - mount and encrypted directory + +SYNOPSIS +======== + +Initialize encrypted filesystem +------------------------------- + +gocryptfs -init [OPTIONS] CIPHERDIR + +Mount +----- + +gocryptfs [OPTIONS] CIPHERDIR MOUNTPOINT + +Change password +--------------- + +gocryptfs -passwd CIPHERDIR + +DESCRIPTION +=========== + +Options: + +**-cpuprofile string** +: Write cpu profile to specified file + +**-debug** +: Enable debug output + +**-f** +: Stay in the foreground + +**-fusedebug** +: Enable fuse library debug output + +**-init** +: Initialize encrypted directory + +**-masterkey string** +: Mount with explicit master key + +**-notifypid int** +: Send USR1 to the specified process after successful mount - used internally for daemonization + +**-openssl bool** +: Use OpenSSL instead of built-in Go crypto (default true) + +**-passwd** +: Change password + +**-plaintextnames** +: Do not encrypt file names - can only be used together with -init + +**-q** +: Quiet - silence informational messages + +**-version** +: Print version and exit + +**-zerokey** +: Use all-zero dummy master key + diff --git a/USAGE.txt b/USAGE.txt deleted file mode 100644 index 3e33074..0000000 --- a/USAGE.txt +++ /dev/null @@ -1,24 +0,0 @@ -Usage: gocryptfs [OPTIONS] CIPHERDIR MOUNTPOINT - -Options: - -cpuprofile string - Write cpu profile to specified file - -debug - Enable debug output - -f Stay in the foreground - -fusedebug - Enable fuse library debug output - -init - Initialize encrypted directory - -masterkey string - Mount with explicit master key - -openssl - Use OpenSSL instead of built-in Go crypto (default true) - -passwd - Change password - -plaintextnames - Do not encrypt file names - can only be used together with -init - -version - Print version and exit - -zerokey - Use all-zero dummy master key