~ubuntu-branches/ubuntu/maverick/postfix/maverick-security

« back to all changes in this revision

Viewing changes to mantools/fixman

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones, Wietse Venema, LaMont Jones
  • Date: 2009-06-03 14:17:08 UTC
  • mfrom: (1.1.22 upstream)
  • Revision ID: james.westby@ubuntu.com-20090603141708-o9u59xlor7nmd2x1
[Wietse Venema]

* New upstream release: 2.6.2~rc1

[LaMont Jones]

* move postfix-add-{filter,policy} manpages to section 8, and deliver
* provide: default-mta on ubuntu

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 
57
57
# Emit one parameter name and text
58
58
 
59
 
sub emit_text() 
 
59
sub emit_text
60
60
{
 
61
    my ($delim) = @_;
61
62
    if ($block = $param_text{$name}) {
62
 
        print "/* .IP \"\\fB$name ($defval_text{$name})\\fR\"\n";
 
63
        print "$delim .IP \"\\fB$name ($defval_text{$name})\\fR\"\n";
63
64
        $wantpp = 0;
64
65
        $block =~ s/<a [^>]*>//g;
65
66
        $block =~ s/<\/a>//g;
105
106
        $block =~ s/([_a-zA-Z0-9-]+)(\([0-9]\))/\\fB\1\\fR\2/g;
106
107
 
107
108
        # Encapsulate as C code comment.
108
 
        $block =~ s/^([^.])/\/\*\t\1/;
109
 
        $block =~ s/^\./\/\* ./;
110
 
        $block =~ s/\n([^.])/\n\/\*\t\1/g;
111
 
        $block =~ s/\n\./\n\/\* ./g;
 
109
        $block =~ s/^([^.])/$delim\t\1/;
 
110
        $block =~ s/^\./$delim ./;
 
111
        $block =~ s/\n([^.])/\n$delim\t\1/g;
 
112
        $block =~ s/\n\./\n$delim ./g;
112
113
 
113
114
        print $block;
114
115
    } else {
115
 
        print "/* .IP \"\\fB$name ($defval)\\fR\"\n";
 
116
        print "$delim .IP \"\\fB$name ($defval)\\fR\"\n";
116
117
        print $text;
117
118
    }
118
119
    $name = "";
168
169
    save_text();
169
170
}
170
171
 
171
 
# Process source file with embedded text. For now, hard-coded for C.
 
172
# Process source file with embedded text. For now, hard-coded for C & sh.
172
173
 
173
174
while(<>) {
174
175
 
175
 
    if (/^\/\*\+\+/) {
 
176
    if (/^(\/\*|#)\+\+/) {
176
177
        $incomment = 1;
177
178
        $name = "";
178
179
        print;
179
180
        next;
180
181
    }
181
182
 
182
 
    if (/^\/\*--/) {
183
 
        emit_text() if ($name ne "");
 
183
    if (/^(\/\*|#)--/) {
 
184
        emit_text($1) if ($name ne "");
184
185
        $incomment = 0;
185
186
        print;
186
187
        next;
191
192
        next;
192
193
    }
193
194
 
194
 
    if (/\/\* +CONFIGURATION +PARAM/) {
 
195
    if (/(\/\*|#) +CONFIGURATION +PARAM/) {
195
196
        $incomment = 2;
196
197
    }
197
198
 
198
199
    # Delete text after nested itemized list.
199
 
    if ($incomment == 2 && /^\/\* +\.IP ""/) {
 
200
    if ($incomment == 2 && /^(\/\*|#) +\.IP ""/) {
200
201
        $text .= $_;
201
202
        while (<>) {
202
 
            last if /^\/\* +([A-Z][A-Z][A-Z]+|\.[A-Z][A-Z])/;
 
203
            last if /^(\/\*|#) +([A-Z][A-Z][A-Z]+|\.[A-Z][A-Z])/;
203
204
            $text .= $_;
204
205
        }
205
206
    }
206
207
 
207
208
    # Delete nested itemized list.
208
 
    if ($incomment == 2 && /^\/\* +\.RS/) {
 
209
    if ($incomment == 2 && /^(\/\*|#) +\.RS/) {
209
210
        $text .= $_;
210
211
        $rsnest++;
211
212
        while (<>) {
212
213
            $text .= $_;
213
 
            $rsnest++ if /^\/\* +\.RS/;
214
 
            $rsnest-- if /\/\* +\.RE/;
 
214
            $rsnest++ if /^(\/\*|#) +\.RS/;
 
215
            $rsnest-- if /(\/\*|#) +\.RE/;
215
216
            last if $rsnest == 0;
216
217
        }
217
218
        next;
218
219
    }
219
220
 
220
 
    if ($incomment == 2 && /^\/\* +\.IP +"?\\fB([a-zA-Z0-9_]+)( +\((.*)\))?/) {
221
 
        emit_text() if ($name ne "");
222
 
        $name = $1;
223
 
        $defval = $3;
 
221
    if ($incomment == 2 && /^(\/\*|#) +\.IP +"?\\fB([a-zA-Z0-9_]+)( +\((.*)\))?/) {
 
222
        emit_text($1) if ($name ne "");
 
223
        $name = $2;
 
224
        $defval = $4;
224
225
        $text = "";
225
226
        next;
226
227
    }
227
228
 
228
 
    if ($incomment == 2 && /^\/\* +([A-Z][A-Z][A-Z]+|\.[A-Z][A-Z])/) {
229
 
        emit_text() if ($name ne "");
230
 
        $incomment = 0 if /^\/\* +(SEE +ALSO|README +FILES|LICENSE|AUTHOR)/;
 
229
    if ($incomment == 2 && /^(\/\*|#) +([A-Z][A-Z][A-Z]+|\.[A-Z][A-Z])/) {
 
230
        emit_text($1) if ($name ne "");
 
231
        $incomment = 0 if /^(\/\*|#) +(SEE +ALSO|README +FILES|LICENSE|AUTHOR)/;
231
232
        print;
232
233
        next;
233
234
    }