From: Ronnie Sahlberg Date: Thu, 15 May 2014 02:04:43 +0000 (-0700) Subject: docs: add a prebuilt manpage to the distribution X-Git-Tag: upstream/1.9.6^2~38 X-Git-Url: https://git.piment-noir.org/?p=deb_libnfs.git;a=commitdiff_plain;h=8e003243fbec4cff4af3e9ca01ea713065336970 docs: add a prebuilt manpage to the distribution Add a prebuilt manpage for nfs-ls and change the makefiles to not build the manpage by default. This is because the manpages change rarely and this removes the need for an internet connection when building the library. (previously building the library required downloading a template from sourceforge) Update the README and mention that you now need to manually rebuild the manpages if the manpage sources change. Signed-off-by: Ronnie Sahlberg --- diff --git a/README b/README index b045041..b0655ea 100644 --- a/README +++ b/README @@ -62,6 +62,14 @@ This is highly non-portable so IF this works on your linux system, count yourself lucky. +DOCUMENTATION +============= +libnfs sources ship with prebuilt manpage(s) in the doc directory. +If you change the manpage sources you need to manually regenerate the new +manpages by running + cd doc + make doc + FUSE ==== A simple FUSE filesystem built on libnfs can be found in diff --git a/doc/Makefile.am b/doc/Makefile.am index 2e9625c..8b9753c 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,8 +1,9 @@ XSLTPROC = /usr/bin/xsltproc +EXTRA_DIST = nfs-ls.1 nfs-ls.1.xml + # Manpages man1_MANS = nfs-ls.1 -CLEANFILES = $(man1_MANS) -nfs-ls.1: nfs-ls.1.xml - -test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< +doc: + -test -z "$(XSLTPROC)" || $(XSLTPROC) -o nfs-ls.1 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl nfs-ls.1.xml diff --git a/doc/nfs-ls.1 b/doc/nfs-ls.1 new file mode 100644 index 0000000..1c09bfc --- /dev/null +++ b/doc/nfs-ls.1 @@ -0,0 +1,120 @@ +'\" t +.\" Title: nfs-ls +.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] +.\" Generator: DocBook XSL Stylesheets v1.78.1 +.\" Date: 05/14/2014 +.\" Manual: nfs-ls: list servers, exports and directories +.\" Source: nfs-ls +.\" Language: English +.\" +.TH "NFS\-LS" "1" "05/14/2014" "nfs\-ls" "nfs\-ls: list servers, exports" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +nfs-ls \- Utility to list NFS servers, exports and directories +.SH "SYNOPSIS" +.HP \w'\fBnfs\-ls\ [\ OPTIONS\ ]\ \fR\ 'u +\fBnfs\-ls [ OPTIONS ] \fR +.HP \w'\fBnfs\-ls\fR\ 'u +\fBnfs\-ls\fR [\-R\ \-\-recursive] [\-s\ \-\-summary] [\-D\ \-\-discovery] [\-?\ \-\-help] [\-\-usage] +.SH "DESCRIPTION" +.PP +nfs\-ls is a utility to list NFS servers, exports or directories\&. +.PP +Example: List the content of a directory on the NFS server +.sp +.if n \{\ +.RS 4 +.\} +.nf +$ nfs\-ls nfs://127\&.0\&.0\&.1/data/tmp +\-rwxrwxr\-x 1 1000 1000 1190802 a\&.out +\-rwxr\-xr\-x 1 1000 1000 13 foo123\&.copy +\-rwxrwxrwx 1 1000 1000 8 foo123\&.writtenx + +.fi +.if n \{\ +.RE +.\} +.sp +.SH "OPTIONS" +.PP +\-s \-\-summary +.RS 4 +Print a summary line at the end of output\&. +.RE +.PP +\-R \-\-recursive +.RS 4 +Recursive listing of the specified URL\&. +.RE +.PP +\-D \-\-discovery; +.RS 4 +This option is used to discover local NFS servers and to list the exports for specific servers\&. +.sp +When used with the \*(Aqnfs://\*(Aq URL the command will try to detect all local NFS servers and will list their IPs\&. +.sp +When used with a \*(Aqnfs://server\*(Aq the command will list all the exports on the specified server\&. +.sp +Example: Discover and list all local NFS servers +.sp +.if n \{\ +.RS 4 +.\} +.nf +$ nfs\-ls \-D nfs:// +nfs://10\&.10\&.10\&.10 +nfs://10\&.0\&.0\&.10 + +.fi +.if n \{\ +.RE +.\} +.sp +Example: List the exports for a server +.sp +.if n \{\ +.RS 4 +.\} +.nf +$ nfs\-ls \-D nfs://10\&.10\&.10\&.10 +nfs://10\&.10\&.10\&.10/foo +nfs://10\&.10\&.10\&.10/bar + +.fi +.if n \{\ +.RE +.\} +.sp +.RE +.PP +\-? \-\-help +.RS 4 +Display basic help text\&. +.RE +.PP +\-\-usage +.RS 4 +Display basic usage text\&. +.RE +.SH "SEE ALSO" +.PP +\m[blue]\fB\%http://github.com/sahlberg/libnfs\fR\m[]