Use libtool with gettext (again! but see hack in Makefile.am).
[gsasl.git] / doc / gdoc-error
blob4662b231490fc2561da377ab1479c05d47379adf
1 #!/usr/bin/perl
3 # Copyright (C) 2002 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
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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 $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 = "";