Add.
[gsasl.git] / doc / gdoc-error
blob75540e36a64676b065eed57e26132093a95f74ff
1 #!/usr/bin/perl
3 # Copyright (C) 2002, 2004, 2005 Simon Josefsson.
5 # This file 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 2 of the License, or
8 # (at your option) any later version.
10 # This file 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 file; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 # I consider the output of this program to be unrestricted. Use it as
20 # you will.
22 use strict;
24 my ($inerror);
25 my ($label, $txt);
27 while (<>) {
28 if ($inerror) {
29 $txt .= $1 if (m,"(.*)",);
30 $inerror = 0 if m,break;,;
31 if (!$inerror) {
32 print "\@item \@code{$label}\n";
33 print $txt, "\n\n";
35 } else {
36 next unless m,case (.*):,;
37 next if $1 =~ m,[^_]+_OK,;
38 $inerror = 1;
39 $label = $1;
40 $txt = "";