File: compile_table

package info (click to toggle)
libmarc-charset-perl 1.33-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,420 kB
  • sloc: xml: 99,034; perl: 641; makefile: 6
file content (53 lines) | stat: -rwxr-xr-x 694 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/perl

=head1 NAME 

compile_table - compile the LoC mapping table 

=head1 SYNOPSIS

    compile_table codetables.xml

=head1 DESCRIPTION

This is a command line utility for recompiling the database that MARC::Charset 
uses for storing the Library of Congress XML mapping table.

=head1 SEE ALSO

=over 4 

=item *

MARC::Charset::Compiler

=item *

MARC::Charset::Table

=back

=head1 AUTHORS

=over 4

=item *

Ed Summers

=back

=cut

use strict;
use warnings;
use MARC::Charset::Compiler;
use Pod::Usage;

my $file = shift;
pod2usage( -message => 'please supply file', -verbose => 1 ) unless -f $file;


my $compiler = MARC::Charset::Compiler->new();
$compiler->compile($file);