Update gnulib files.
[gsasl.git] / doc / gdoc-error
blob67bb17fc1750f32bbd39a9abfa070ffde35c84e6
1 #!/usr/bin/perl
3 # Copyright (C) 2002, 2004, 2005, 2007 Simon Josefsson
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # I consider the output of this program to be unrestricted. Use it as
19 # you will.
21 use strict;
23 my ($inerror);
24 my ($label, $txt);
26 while (<>) {
27 if ($inerror) {
28 $txt .= $1 if (m,"(.*)",);
29 $inerror = 0 if m,break;,;
30 if (!$inerror) {
31 print "\@item \@code{$label}\n";
32 print $txt, "\n\n";
34 } else {
35 next unless m,case (.*):,;
36 next if $1 =~ m,[^_]+_OK,;
37 $inerror = 1;
38 $label = $1;
39 $txt = "";