Skip to content

Commit

Permalink
fix manual page formatting errors (Debian patch #17, original author …
Browse files Browse the repository at this point in the history
…Nicolas Francois)

git-svn-id: file:///home/hardaker/lib/sf-bkups/net-snmp-convert-svnrepo/trunk@14189 06827809-a52a-0410-b366-d66718629ded
  • Loading branch information
Thomas Anders committed Jan 31, 2006
1 parent 1dd7c06 commit a43ed6e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions man/mib2c.extract.pl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
while (<I>) {
last if (!/^#/);
s/^#\s+//;
# Avoid ' at the beginning of a line
s/^'/\\&'/;
# Quotes in a quoted argument must be doubled.
s/"/""/g;
s/^(\@.*\@)$/.IP "$1"/;
print;
}
Expand All @@ -25,6 +29,10 @@
last if (!/^#/);
next if (/^#\s*$/);
s/^#\s+//;
# Avoid ' at the beginning of a line
s/^'/\\&'/;
# Quotes in a quoted argument must be doubled.
s/"/""/g;
s/^(\S+)\s+--\s+(.*)/.IP "$1"\n$2/;
print;
}
Expand Down
6 changes: 3 additions & 3 deletions man/snmpnetstat.1.def
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ tcp *.chargen *.* LISTEN
tcp *.ftp *.* LISTEN
tcp *.telnet *.* LISTEN
tcp *.smtp *.* LISTEN
...
\&...

Active Internet (udp) Connections
Proto Local Address
Expand All @@ -265,7 +265,7 @@ udp *.discard
udp *.daytime
udp *.chargen
udp *.time
...
\&...
.fi
.PP
% snmpnetstat -v 2c -c public -i testhost
Expand All @@ -290,7 +290,7 @@ tcp *.chargen *.* LISTEN
tcp *.ftp *.* LISTEN
tcp *.telnet *.* LISTEN
tcp *.smtp *.* LISTEN
...
\&...
.fi
.SH SEE ALSO
snmpcmd(1),
Expand Down

0 comments on commit a43ed6e

Please sign in to comment.