about summary refs log tree commit homepage
path: root/Rakefile
diff options
context:
space:
mode:
authorevanweaver <evanweaver@19e92222-5c0b-0410-8929-a290d50e31e9>2007-10-17 06:57:40 +0000
committerevanweaver <evanweaver@19e92222-5c0b-0410-8929-a290d50e31e9>2007-10-17 06:57:40 +0000
commite7ebe29dcc94c04ec585623f8c8a3bff04fe4afd (patch)
tree4f4ddd30f0bffe572e21f79a5819d823c383dc0e /Rakefile
parent496daab2f37436dde375ede903a0778c13de67a4 (diff)
downloadunicorn-e7ebe29dcc94c04ec585623f8c8a3bff04fe4afd.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@671 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile32
1 files changed, 17 insertions, 15 deletions
diff --git a/Rakefile b/Rakefile
index f699c1b..6c4678f 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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