linma / rpms / iproute

Forked from rpms/iproute 4 years ago
Clone

Blame SOURCES/0123-man-rtpr-add-minimal-manpage.patch

049c96
From 6f97690bb3a37d701a67fdd8e0dbd4d8911c4d7c Mon Sep 17 00:00:00 2001
049c96
From: Phil Sutter <psutter@redhat.com>
049c96
Date: Fri, 11 Mar 2016 15:33:47 +0100
049c96
Subject: [PATCH] man: rtpr: add minimal manpage
049c96
049c96
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1316059
049c96
Upstream Status: iproute2.git commit e4ef49a465969
049c96
Conflicts: Context changes in Makefile due to missing other man pages.
049c96
049c96
commit e4ef49a465969a68704dbcfec43baa7f874f59ff
049c96
Author: Phil Sutter <phil@nwl.cc>
049c96
Date:   Fri Sep 18 20:17:05 2015 +0200
049c96
049c96
    man: rtpr: add minimal manpage
049c96
049c96
    While there is not much to explain about this rather trivial shell
049c96
    script, having a manpage for it serves as good point of reference for
049c96
    users wondering what it might be for.
049c96
049c96
    Signed-off-by: Phil Sutter <phil@nwl.cc>
049c96
---
049c96
 man/man8/Makefile |  2 +-
049c96
 man/man8/rtpr.8   | 25 +++++++++++++++++++++++++
049c96
 2 files changed, 26 insertions(+), 1 deletion(-)
049c96
 create mode 100644 man/man8/rtpr.8
049c96
049c96
diff --git a/man/man8/Makefile b/man/man8/Makefile
049c96
index 248ecfd..c60c773 100644
049c96
--- a/man/man8/Makefile
049c96
+++ b/man/man8/Makefile
049c96
@@ -1,6 +1,6 @@
049c96
 TARGETS = ip-address.8 ip-link.8 ip-route.8
049c96
 
049c96
-MAN8PAGES = $(TARGETS) ip.8 arpd.8 lnstat.8 routel.8 rtacct.8 rtmon.8 ss.8 \
049c96
+MAN8PAGES = $(TARGETS) ip.8 arpd.8 lnstat.8 routel.8 rtacct.8 rtmon.8 rtpr.8 ss.8 \
049c96
 	tc.8 tc-bfifo.8 tc-cbq.8 tc-cbq-details.8 tc-choke.8 tc-codel.8 \
049c96
 	tc-fq.8 \
049c96
 	tc-drr.8 tc-ematch.8 tc-fq_codel.8 tc-hfsc.8 tc-htb.8 \
049c96
diff --git a/man/man8/rtpr.8 b/man/man8/rtpr.8
049c96
new file mode 100644
049c96
index 0000000..5e32b2e
049c96
--- /dev/null
049c96
+++ b/man/man8/rtpr.8
049c96
@@ -0,0 +1,25 @@
049c96
+.TH RTPR 8 "18 September, 2015"
049c96
+
049c96
+.SH NAME
049c96
+rtpr \- replace backslashes with newlines.
049c96
+
049c96
+.SH DESCRIPTION
049c96
+.B rtpr
049c96
+is a trivial bash script which converts backslashes in standard input to newlines. It's sole purpose is to be fed with input from
049c96
+.B ip
049c96
+when executed with it's
049c96
+.B --oneline
049c96
+flag.
049c96
+
049c96
+.SH EXAMPLES
049c96
+.TP
049c96
+ip --onenline address show | rtpr
049c96
+Undo oneline converted
049c96
+.B ip-address
049c96
+output.
049c96
+
049c96
+.SH SEE ALSO
049c96
+.BR ip (8)
049c96
+
049c96
+.SH AUTHORS
049c96
+Stephen Hemminger <shemming@brocade.com>
049c96
-- 
049c96
1.8.3.1
049c96