Sha256: c034e6fd36cc7bb2dba7515ac98a3a06b356667acb73ca9a0785c9e802766dd8

Contents?: true

Size: 1.66 KB

Versions: 1

Compression:

Stored size: 1.66 KB

Contents

# -*- ruby -*-

require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/rdoctask'
require 'rake/testtask'
require 'echoe'

Echoe.new('bibtex-ruby', '1.1.0') do |p|
  p.summary        = "A BibTeX parser written in Ruby"
  p.description    = "A (fairly complete) BibTeX parser written in Ruby. Supports regular BibTeX entries, @comments, string replacement via @string, and simple export formats (e.g. YAML)."
  p.url            = "http://github.com/inukshuk/bibtex-ruby"
  p.author         = "Sylvester Keil"
  p.email          = "http://sylvester.keil.or.at"
  p.ignore_pattern = []
  p.development_dependencies = [['racc', '>=1.4.6'], ['minitest']]
  p.need_tgz       = true
  p.rdoc_options   = ["--line-numbers", "--inline-source", "--title", "BibTeX-Ruby Documentation", "--main", "README.rdoc"]
end

Rake::RDocTask.new(:rdoc_task) do |rd|
  rd.main = 'README.rdoc'
  rd.title = "BibTeX-Ruby Documentation"
  rd.rdoc_files.include('README.rdoc',"lib/**/*.rb")
  rd.rdoc_dir = "doc/html"
  rd.options << '--webcvs=http://github.com/inukshuk/bibtex-ruby/tree/master/'
end

Rake::TestTask.new(:test_task) do |t|
  t.libs << "test"
  t.test_files = FileList['test/test*.rb']
  t.verbose = true
end

task :default => ['racc']

desc 'Generates the BibTeX parser'
task :racc => ['lib/bibtex/parser.rb']

desc 'Generates RDoc documentation for BibTeX-Ruby'
task :rdoc => ['clean','racc','rdoc_task']

task :test => ['racc','test_task']

file 'lib/bibtex/parser.rb' => ['lib/bibtex/bibtex.y'] do
  sh 'racc -v -g -o lib/bibtex/parser.rb lib/bibtex/bibtex.y'
end

CLEAN.include('lib/bibtex/parser.rb')
CLEAN.include('lib/bibtex/parser.output')
CLEAN.include('doc/html')


# vim: syntax=ruby

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bibtex-ruby-1.1.0 Rakefile