Sha256: a9ae6e87467484393975e6ad6b77e4380b822c6728574e191cf8379b7c80ff85

Contents?: true

Size: 237 Bytes

Versions: 23

Compression:

Stored size: 237 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.open(ARGV[0]).to_yaml
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
bibtex-ruby-4.4.7 examples/bib2yaml.rb
bibtex-ruby-4.4.6 examples/bib2yaml.rb
bibtex-ruby-4.4.5 examples/bib2yaml.rb
bibtex_to_scrapbox-0.2.0 gems/gems/bibtex-ruby-4.4.4/examples/bib2yaml.rb
bibtex_to_scrapbox-0.1.0 gems/gems/bibtex-ruby-4.4.4/examples/bib2yaml.rb
bibtex-ruby-4.4.4 examples/bib2yaml.rb
bibtex-ruby-4.4.3 examples/bib2yaml.rb
bibtex-ruby-4.4.2 examples/bib2yaml.rb
bibtex-ruby-4.4.1 examples/bib2yaml.rb
bibtex-ruby-4.4.0 examples/bib2yaml.rb
bibtex-ruby-4.3.0 examples/bib2yaml.rb
bibtex-ruby-4.2.0 examples/bib2yaml.rb
bibtex-ruby-4.1.2 examples/bib2yaml.rb
bibtex-ruby-4.1.1 examples/bib2yaml.rb
bibtex-ruby-4.1.0 examples/bib2yaml.rb
bibtex-ruby-4.0.16 examples/bib2yaml.rb
bibtex-ruby-4.0.15 examples/bib2yaml.rb
bibtex-ruby-4.0.14 examples/bib2yaml.rb
bibtex-ruby-4.0.13 examples/bib2yaml.rb
bibtex-ruby-4.0.12 examples/bib2yaml.rb