File: bibtex-to-dep12

package info (click to toggle)
libdebian-dep12-perl 0.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 124 kB
  • sloc: perl: 481; makefile: 2
file content (18 lines) | stat: -rwxr-xr-x 360 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl

use strict;
use warnings;

use Debian::DEP12;
use Text::BibTeX;

@ARGV = ( '-' ) unless @ARGV;

for my $i (0..$#ARGV) {
    my $filename = $ARGV[$i];
    print "---\n" if $i;
    my $bibfile = Text::BibTeX::File->new( $filename )
        || die "$0: $filename: $!\n";
    my $meta = Debian::DEP12->new( $bibfile );
    print $meta->to_YAML;
}