about summary refs log tree commit homepage
path: root/Rakefile
diff options
context:
space:
mode:
authorevanweaver <evanweaver@19e92222-5c0b-0410-8929-a290d50e31e9>2007-09-25 21:53:18 +0000
committerevanweaver <evanweaver@19e92222-5c0b-0410-8929-a290d50e31e9>2007-09-25 21:53:18 +0000
commitf834811c948e55fdd5e128990ca9ad2df85f3281 (patch)
tree4d24921cb017b333262090fc756ce61d8a5a1714 /Rakefile
parent1b05168d47bf8058e0a7139113deb437f7e9f293 (diff)
downloadunicorn-f834811c948e55fdd5e128990ca9ad2df85f3281.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@631 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 5178c71..58b04a6 100644
--- a/Rakefile
+++ b/Rakefile
@@ -30,12 +30,17 @@ end
 
 task :compile do
   # Append a sanity check to the compile task
-  if Dir.glob(File.join("lib","http11.*")).length == 0
+  files = Dir["lib/http11/http11.*"]
+  unless files.any?
     STDERR.puts "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
     STDERR.puts "Gem actually failed to build.  Your system is"
     STDERR.puts "NOT configured properly to build Mongrel."
     STDERR.puts "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
     exit(1)
+  else
+    files.each do |file|
+      mv file, "lib/"
+    end
   end
 end