UTILS: move nfs-cp from examples to utils
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>libnfs-4.0.0-vitalif
parent
ec3a3afeae
commit
eadef4f724
|
@ -1,10 +1,11 @@
|
||||||
XSLTPROC = /usr/bin/xsltproc
|
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
|
# Manpages
|
||||||
man1_MANS = nfs-cat.1 nfs-ls.1
|
man1_MANS = nfs-cat.1 nfs-cp.1 nfs-ls.1
|
||||||
|
|
||||||
doc:
|
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-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
|
-test -z "$(XSLTPROC)" || $(XSLTPROC) -o nfs-ls.1 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl nfs-ls.1.xml
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<refentry id="nfs-ls.1">
|
<refentry id="nfs-cat.1">
|
||||||
|
|
||||||
<refmeta>
|
<refmeta>
|
||||||
<refentrytitle>nfs-cat</refentrytitle>
|
<refentrytitle>nfs-cat</refentrytitle>
|
||||||
|
|
|
@ -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[]
|
|
@ -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 <src> <dst></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>
|
|
@ -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 = \
|
AM_CPPFLAGS = \
|
||||||
-I$(abs_top_srcdir)/include \
|
-I$(abs_top_srcdir)/include \
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
bin_PROGRAMS = nfs-cat nfs-ls
|
bin_PROGRAMS = nfs-cat nfs-cp nfs-ls
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
-I$(abs_top_srcdir)/include \
|
-I$(abs_top_srcdir)/include \
|
||||||
|
|
Loading…
Reference in New Issue