Debian Codegraph @

bin/compile_table

raw
1 #!/usr/bin/perl
2
3 =head1 NAME
4
5 compile_table - compile the LoC mapping table
6
7 =head1 SYNOPSIS
8
9 compile_table codetables.xml
10
11 =head1 DESCRIPTION
12
13 This is a command line utility for recompiling the database that MARC::Charset
14 uses for storing the Library of Congress XML mapping table.
15
16 =head1 SEE ALSO
17
18 =over 4
19
20 =item *
21
22 MARC::Charset::Compiler
23
24 =item *
25
26 MARC::Charset::Table
27
28 =back
29
30 =head1 AUTHORS
31
32 =over 4
33
34 =item *
35
36 Ed Summers
37
38 =back
39
40 =cut
41
42 use strict;
43 use warnings;
44 use MARC::Charset::Compiler;
45 use Pod::Usage;
46
47 my $file = shift;
48 pod2usage( -message => 'please supply file', -verbose => 1 ) unless -f $file;
49
50
51 my $compiler = MARC::Charset::Compiler->new();
52 $compiler->compile($file);
53