diff options
author | evanweaver <evanweaver@19e92222-5c0b-0410-8929-a290d50e31e9> | 2007-10-17 06:57:40 +0000 |
---|---|---|
committer | evanweaver <evanweaver@19e92222-5c0b-0410-8929-a290d50e31e9> | 2007-10-17 06:57:40 +0000 |
commit | e7ebe29dcc94c04ec585623f8c8a3bff04fe4afd (patch) | |
tree | 4f4ddd30f0bffe572e21f79a5819d823c383dc0e | |
parent | 496daab2f37436dde375ede903a0778c13de67a4 (diff) | |
download | unicorn-e7ebe29dcc94c04ec585623f8c8a3bff04fe4afd.tar.gz |
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@671 19e92222-5c0b-0410-8929-a290d50e31e9
-rw-r--r-- | Rakefile | 32 |
1 files changed, 17 insertions, 15 deletions
@@ -44,6 +44,23 @@ Echoe.new("mongrel") do |p| end +#### Ragel builder + +task :ragel do + Dir.chdir "ext/http11" do + target = "http11_parser.c" + File.unlink target if File.exist? target + sh "ragel http11_parser.rl | rlgen-cd -G2 -o #{target}" + raise "Failed to build C source" unless File.exist? target + end + Dir.chdir "ext/http11_java" do + target = "org/jruby/mongrel/Http11Parser.java" + File.unlink target if File.exist? target + sh "ragel -J http11_parser.rl | rlgen-java -o #{target}" + raise "Failed to build Java source" unless File.exist? target + end +end + #### A hack around RubyGems and Echoe for pre-compiled extensions. def move_extensions @@ -164,21 +181,6 @@ task :gem_source => [:package_all] do rm "SVN_LOG" end -task :ragel do - Dir.chdir "ext/http11" do - target = "http11_parser.c" - File.unlink target if File.exist? target - sh "ragel http11_parser.rl | rlgen-cd -G2 -o #{target}" - raise "Failed to build C source" unless File.exist? target - end - Dir.chdir "ext/http11_java" do - target = "org/jruby/mongrel/Http11Parser.java" - File.unlink target if File.exist? target - sh "ragel -J http11_parser.rl | rlgen-java -o #{target}" - raise "Failed to build Java source" unless File.exist? target - end -end - task :site_webgen do sh "pushd site; webgen; ruby atom.rb > output/feed.atom; rsync -azv output/* rubyforge.org:/var/www/gforge-projects/mongrel/; popd" end |