diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2011-12-11 17:32:51 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-12-11 17:32:51 +0000 |
commit | 4e1929b059c8249870e628cc4dae129cd5e18ec9 (patch) | |
tree | b38ce38e6453748315dfdeeb384d6861392c8381 /listen | |
parent | b9ac7b273b84f78355517ad6098d6359b68dab1c (diff) |
Apply program name transformations also to man page content.
For now these options are just honored for the call.1 and listen.1 man
pages because these days these two programs generally get renamed to
avoid naming conflicts with other programs.
Diffstat (limited to 'listen')
-rw-r--r-- | listen/Makefile.am | 19 | ||||
-rw-r--r-- | listen/listen.man (renamed from listen/listen.1) | 16 |
2 files changed, 26 insertions, 9 deletions
diff --git a/listen/Makefile.am b/listen/Makefile.am index b47ecde..55a937c 100644 --- a/listen/Makefile.am +++ b/listen/Makefile.am @@ -5,7 +5,24 @@ bin_PROGRAMS = listen man_MANS = listen.1 -EXTRA_DIST = $(man_MANS) +EXTRA_DIST = listen.man +CLEANFILES = listen.1 listen.1.tmp + +listen.1 : listen.man + name_call=$$(echo call | sed -e '$(transform)') \ + name_Call=$$(echo $$name_call | sed -r 's@^(.)@\U\1\E@') && \ + name_CALL=$$(echo $$name_call | sed -r 's@^(.*)@\U\1\E@') && \ + name_listen=$$(echo listen | sed -e '$(transform)') \ + name_Listen=$$(echo $$name_listen | sed -r 's@^(.)@\U\1\E@') && \ + name_LISTEN=$$(echo $$name_listen | sed -r 's@^(.*)@\U\1\E@') &&\ + sed -e "s/@@@call@@@/$$name_call/g" \ + -e "s/@@@Call@@@/$$name_Call/g" \ + -e "s/@@@CALL@@@/$$name_CALL/g" \ + -e "s/@@@listen@@@/$$name_listen/g" \ + -e "s/@@@Listen@@@/$$name_Listen/g" \ + -e "s/@@@LISTEN@@@/$$name_LISTEN/g" \ + listen.man > listen.1.tmp && \ + mv listen.1.tmp listen.1; LDADD = $(AX25_LIB) $(NCURSES_LIB) diff --git a/listen/listen.1 b/listen/listen.man index 030b716..adc8dea 100644 --- a/listen/listen.1 +++ b/listen/listen.man @@ -1,11 +1,11 @@ -.TH LISTEN 1 "27 August 1996" Linux "Linux Programmer's Manual" +.TH @@@LISTEN@@@ 1 "27 August 1996" Linux "Linux Programmer's Manual" .SH NAME -listen \- monitor AX.25 traffic +@@@listen@@@ \- monitor AX.25 traffic .SH SYNOPSIS -.B listen [-8] [-a] [-c] [-h] [-i] [-p port] [-r] [-t] [-v] +.B @@@listen@@@ [-8] [-a] [-c] [-h] [-i] [-p port] [-r] [-t] [-v] .SH DESCRIPTION .LP -.B Listen +.B @@@Listen@@@ uses SOCK_PACKET facilities to provide a network monitor of all AX.25 traffic heard by the system. Since KISS is implicitly promiscuous no special driver configurations are needed. @@ -15,12 +15,12 @@ IP, ICMP, TCP and UDP. It also displays IP, TCP, ICMP, TCP and UDP encapsulated within NET/ROM frames. The program also displays AX.25 and IP encapsulated within an IP frame, but see RFC1326 for reasons not to do so. .LP -.B Listen +.B @@@Listen@@@ makes an attempt at decoding some of the more common routing protocols. RSPF and RIP (both \(lqnormal\(rq and G8BPQs RIP98) are traced. JNOS style NET/ROM node polls are also displayed. .LP -.B Listen +.B @@@Listen@@@ can use colors to make the output more readable. The ncurses library is used to accomplish this. .B Color support defaults to being disabled, @@ -64,7 +64,7 @@ Display the version. .SH FILES /etc/ax25/axports .SH "SEE ALSO" -.BR call (1), +.BR @@@call@@@ (1), .BR mheard (1), .BR beacon (1), .BR ax25 (4), @@ -73,7 +73,7 @@ Display the version. .BR kissattach (8). .LP .SH BUGS -.B Listen +.B @@@Listen@@@ does not validate the checksums of frames that support them (ie IP), therefore corrupt frames will be displayed with bogus values. The MSS of a TCP frame that contains that option is not displayed. |