Sha256: af8847f013649407a5703d3c4caf4eec701232430218f7ef5afa71f8faf46655

Contents?: true

Size: 251 Bytes

Versions: 3

Compression:

Stored size: 251 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'bibtex'
require 'yaml'

if ARGV.length < 1
  puts "Usage: #{$0} <bib> [<yml>]" 
else
  out = ARGV.length == 2 ? File.open(ARGV[1], 'w') : STDOUT
  out.puts BibTeX::Bibliography.open(ARGV[0]).to_yaml
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bibtex-ruby-1.1.2 examples/bib2yaml.rb
bibtex-ruby-1.1.1 examples/bib2yaml.rb
bibtex-ruby-1.1.0 examples/bib2yaml.rb