Sha256: 5e03450a29f14a678134c2cb5b54e5fad1e7a972e6181f38781855466479535c

Contents?: true

Size: 244 Bytes

Versions: 13

Compression:

Stored size: 244 Bytes

Contents

#!/usr/bin/env ruby

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

if ARGV.empty?
  puts "Usage: #{$PROGRAM_NAME} <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

13 entries across 13 versions & 2 rubygems

Version Path
bibtex-ruby-6.1.0 examples/bib2yaml.rb
bibtex-ruby-6.0.0 examples/bib2yaml.rb
bibtex-ruby-5.1.6 examples/bib2yaml.rb
bibtex-ruby-5.1.5 examples/bib2yaml.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/bibtex-ruby-5.1.4/examples/bib2yaml.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/bibtex-ruby-5.1.4/examples/bib2yaml.rb
bibtex-ruby-5.1.4 examples/bib2yaml.rb
bibtex-ruby-5.1.3 examples/bib2yaml.rb
bibtex-ruby-5.1.2 examples/bib2yaml.rb
bibtex-ruby-5.1.1 examples/bib2yaml.rb
bibtex-ruby-5.1.0 examples/bib2yaml.rb
bibtex-ruby-5.0.1 examples/bib2yaml.rb
bibtex-ruby-5.0.0 examples/bib2yaml.rb