Added some code to peer into a data structure in Maemian/Schedule.pm. Also added the
[maemian] / nokia-lintian / lib / Manual_refs.pm
1 # Copyright (C) 1998 Christian Schwarz
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program.  If not, you can find it on the World Wide
15 # Web at http://www.gnu.org/copyleft/gpl.html, or write to the Free
16 # Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
17 # MA 02110-1301, USA.
18
19 use strict;
20
21 # define hash for manuals
22 my %manual =
23 (
24  'policy' => 'Policy Manual',
25  'devref' => 'Developers Reference',
26  'fhs'    => 'FHS',
27 );
28
29 my %url;
30
31 my $lib = defined $ENV{LINTIAN_ROOT} ?  "$ENV{LINTIAN_ROOT}/" : "";
32
33 open (REFS, '<', "${lib}lib/manual_refs")
34     or die "Could not open manual_refs: $!";
35
36 while(<REFS>) {
37     chomp;
38     next if m/^\s*\#/;
39
40     my ($key, $data) = split;
41     $url{$key} = $data;
42 }
43
44 close REFS;
45
46 1;