Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 44 lines (35 sloc) 1.197 kb
a524b9b @nathansobo Got rid of old SVN tags and trunk dirs and moved everything to root.
authored
1 require 'rubygems'
2 require 'rake'
3 require 'rake/gempackagetask'
8055209 @hipe Change Rakefile to work with rspec 2.3
hipe authored
4 require 'rspec/core/rake_task'
a524b9b @nathansobo Got rid of old SVN tags and trunk dirs and moved everything to root.
authored
5
6 task :default => :spec
8055209 @hipe Change Rakefile to work with rspec 2.3
hipe authored
7 RSpec::Core::RakeTask.new do |t|
a524b9b @nathansobo Got rid of old SVN tags and trunk dirs and moved everything to root.
authored
8 t.pattern = 'spec/**/*spec.rb'
8055209 @hipe Change Rakefile to work with rspec 2.3
hipe authored
9 # t.libs << 'spec' # @todo not sure what this did in the original rspec 1.3
a524b9b @nathansobo Got rid of old SVN tags and trunk dirs and moved everything to root.
authored
10 end
11
aa7f754 @cjheath Setup the gem to auto-build on github by adding a treetop.gemspec
cjheath authored
12 load "./treetop.gemspec"
13 Rake::GemPackageTask.new($gemspec) do |pkg|
a524b9b @nathansobo Got rid of old SVN tags and trunk dirs and moved everything to root.
authored
14 pkg.need_tar = true
15 end
da06c7b @cjheath Changed expectations regarding string literals for Ruby 1.9.1
cjheath authored
16
89baa8a @jeremy Eliminate middleman rake task. Depend directly on the metagrammar file.
jeremy authored
17 task :spec => 'lib/treetop/compiler/metagrammar.treetop'
18 file 'lib/treetop/compiler/metagrammar.treetop' do |t|
0440003 @jgarber Add task to regenerate metagrammar.rb from current parser.
jgarber authored
19 unless $bootstrapped_gen_1_metagrammar
89baa8a @jeremy Eliminate middleman rake task. Depend directly on the metagrammar file.
jeremy authored
20 load File.expand_path('../lib/treetop/bootstrap_gen_1_metagrammar.rb', __FILE__)
0440003 @jgarber Add task to regenerate metagrammar.rb from current parser.
jgarber authored
21 end
89baa8a @jeremy Eliminate middleman rake task. Depend directly on the metagrammar file.
jeremy authored
22
0440003 @jgarber Add task to regenerate metagrammar.rb from current parser.
jgarber authored
23 Treetop::Compiler::GrammarCompiler.new.compile(METAGRAMMAR_PATH)
24 end
25
da06c7b @cjheath Changed expectations regarding string literals for Ruby 1.9.1
cjheath authored
26 task :version do
27 puts RUBY_VERSION
28 end
56ab4c8 @cjheath Updated website and added missing files for it
cjheath authored
29
30 desc 'Generate website files'
31 task :website_generate do
32 `cd doc; ruby ./site.rb`
33 end
34
35 desc 'Upload website files'
36 task :website_upload do
37 rubyforge_config_file = "#{ENV['HOME']}/.rubyforge/user-config.yml"
38 rubyforge_config = YAML.load_file(rubyforge_config_file)
39 `rsync -aCv doc/site/ #{rubyforge_config['username']}@rubyforge.org:/var/www/gforge-projects/treetop/`
40 end
41
42 desc 'Generate and upload website files'
43 task :website => [:website_generate, :website_upload]
Something went wrong with that request. Please try again.