File: dbk2xhtml.pl

package info (click to toggle)
libmojomojo-perl 1.01%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,272 kB
  • ctags: 879
  • sloc: perl: 14,055; sh: 145; xml: 120; ruby: 6; makefile: 2
file content (30 lines) | stat: -rwxr-xr-x 500 bytes parent folder | download | duplicates (5)
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
#!/usr/bin/perl
use strict;
use warnings;
use FindBin;
use lib "$FindBin::Bin/../../lib";

use MojoMojo::Formatter::DocBook;

my $filename = shift;
open my $file, '<', $filename or die "Can't open $filename: $!\n";
my $content = do {local $/; <$file> };

print MojoMojo::Formatter::DocBook->to_xhtml( $content );


__END__

=head1 Usage

dbk2xhtml.pl docbookfile

=head1 AUTHORS

Daniel Brosseau <dab@catapulse.org>

=head1 LICENSE

This script is licensed under the same terms as Perl itself.

=cut