~ubuntu-branches/ubuntu/intrepid/net-snmp/intrepid-updates

« back to all changes in this revision

Viewing changes to man/mib2c.extract.pl

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2006-11-28 12:29:34 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20061128122934-82xxzy2zcvypnvy7
Tags: 5.2.3-4ubuntu1
* Merge from debian unstable, remaining changes:
  - remove stop links from rc0 and rc6

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
        while (<I>) {
13
13
            last if (!/^#/);
14
14
            s/^#\s+//;
 
15
            # Avoid ' at the beginning of a line
 
16
            s/^'/\\&'/;
 
17
            # Quotes in a quoted argument must be doubled.
 
18
            s/"/""/g;
15
19
            s/^(\@.*\@)$/.IP "$1"/;
16
20
            print;
17
21
        }
25
29
            last if (!/^#/);
26
30
            next if (/^#\s*$/);
27
31
            s/^#\s+//;
 
32
            # Avoid ' at the beginning of a line
 
33
            s/^'/\\&'/;
 
34
            # Quotes in a quoted argument must be doubled.
 
35
            s/"/""/g;
28
36
            s/^(\S+)\s+--\s+(.*)/.IP "$1"\n$2/;
29
37
            print;
30
38
        }