UTILS: move nfs-cp from examples to utils

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
libnfs-4.0.0-vitalif
Ronnie Sahlberg 2015-05-24 07:49:09 -07:00
parent ec3a3afeae
commit 08ea9a3138
8 changed files with 113 additions and 6 deletions

View File

@ -1,10 +1,11 @@
XSLTPROC = /usr/bin/xsltproc
EXTRA_DIST = nfs-cat.1 nfs-cat.1.xml nfs-ls.1 nfs-ls.1.xml
EXTRA_DIST = nfs-cat.1 nfs-cat.1.xml nfs-cp.1 nfs-cp.1.xml nfs-ls.1 nfs-ls.1.xml
# Manpages
man1_MANS = nfs-cat.1 nfs-ls.1
man1_MANS = nfs-cat.1 nfs-cp.1 nfs-ls.1
doc:
-test -z "$(XSLTPROC)" || $(XSLTPROC) -o nfs-cat.1 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl nfs-cat.1.xml
-test -z "$(XSLTPROC)" || $(XSLTPROC) -o nfs-cp.1 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl nfs-cp.1.xml
-test -z "$(XSLTPROC)" || $(XSLTPROC) -o nfs-ls.1 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl nfs-ls.1.xml

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<refentry id="nfs-ls.1">
<refentry id="nfs-cat.1">
<refmeta>
<refentrytitle>nfs-cat</refentrytitle>

58
doc/nfs-cp.1 Normal file
View File

@ -0,0 +1,58 @@
'\" t
.\" Title: nfs-cp
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
.\" Date: 05/24/2015
.\" Manual: nfs-cp: copy files to/from an NFS share
.\" Source: nfs-cp
.\" Language: English
.\"
.TH "NFS\-CP" "1" "05/24/2015" "nfs\-cp" "nfs\-cp: copy files to/from an"
.\" -----------------------------------------------------------------
.\" * 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-cp \- Utility to copy files to/from and NFS server
.SH "SYNOPSIS"
.HP \w'\fBnfs\-cp\ <src>\ <dst>\fR\ 'u
\fBnfs\-cp <src> <dst>\fR
.SH "DESCRIPTION"
.PP
nfs\-cp is a utility to copy files to/from and NFS server\&.
.PP
Examples:
.sp
.if n \{\
.RS 4
.\}
.nf
$ nfs\-cp foo\&.c nfs://127\&.0\&.0\&.1/data/tmp/foo\&.c
$ nfs\-cp nfs://127\&.0\&.0\&.1/data/tmp/foo\&.c bob\&.c
$ nfs\-cp nfs://127\&.0\&.0\&.1/data/tmp/foo\&.c nfs://127\&.0\&.0\&.1/data/tmp/copy\-of\-foo\&.c
.fi
.if n \{\
.RE
.\}
.sp
.SH "SEE ALSO"
.PP
\m[blue]\fB\%http://github.com/sahlberg/libnfs\fR\m[]

46
doc/nfs-cp.1.xml Normal file
View File

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<refentry id="nfs-cp.1">
<refmeta>
<refentrytitle>nfs-cp</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo class="source">nfs-cp</refmiscinfo>
<refmiscinfo class="manual">nfs-cp: copy files to/from an NFS share</refmiscinfo>
</refmeta>
<refnamediv>
<refname>nfs-cp</refname>
<refpurpose>Utility to copy files to/from and NFS server</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>nfs-cp &lt;src&gt; &lt;dst&gt;</command>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1><title>DESCRIPTION</title>
<para>
nfs-cp is a utility to copy files to/from and NFS server.
</para>
<para>
Examples:
<screen format="linespecific">
$ nfs-cp foo.c nfs://127.0.0.1/data/tmp/foo.c
$ nfs-cp nfs://127.0.0.1/data/tmp/foo.c bob.c
$ nfs-cp nfs://127.0.0.1/data/tmp/foo.c nfs://127.0.0.1/data/tmp/copy-of-foo.c
</screen>
</para>
</refsect1>
<refsect1><title>SEE ALSO</title>
<para>
<ulink url="http://github.com/sahlberg/libnfs"/>
</para>
</refsect1>
</refentry>

View File

@ -1,4 +1,4 @@
noinst_PROGRAMS = nfsclient-async nfsclient-raw nfsclient-sync nfsclient-bcast nfsclient-listservers nfs-cp nfs-io portmap-client
noinst_PROGRAMS = nfsclient-async nfsclient-raw nfsclient-sync nfsclient-bcast nfsclient-listservers nfs-io portmap-client
AM_CPPFLAGS = \
-I$(abs_top_srcdir)/include \

View File

@ -104,9 +104,11 @@ Utility programs for LibNFS
%files utils
%defattr(-,root,root)
%{_bindir}/nfs-ls
%{_bindir}/nfs-cat
%{_bindir}/nfs-cp
%{_bindir}/nfs-ls
%{_mandir}/man1/nfs-cat.1.gz
%{_mandir}/man1/nfs-cp.1.gz
%{_mandir}/man1/nfs-ls.1.gz
%changelog

View File

@ -1,4 +1,4 @@
bin_PROGRAMS = nfs-cat nfs-ls
bin_PROGRAMS = nfs-cat nfs-cp nfs-ls
AM_CPPFLAGS = \
-I$(abs_top_srcdir)/include \