2006-01-28 14:03:53 -05:00
|
|
|
require 'rake'
|
|
|
|
require 'rake/testtask'
|
|
|
|
require 'rake/clean'
|
|
|
|
require 'rake/gempackagetask'
|
|
|
|
require 'rake/rdoctask'
|
|
|
|
require 'tools/rakehelp'
|
|
|
|
require 'fileutils'
|
|
|
|
include FileUtils
|
|
|
|
|
|
|
|
setup_tests
|
|
|
|
setup_clean ["ext/http11/Makefile", "pkg", "lib/*.bundle", "ext/http11/*.bundle"]
|
|
|
|
setup_rdoc ['README', 'LICENSE', 'COPYING', 'lib/*.rb',
|
|
|
|
'doc/**/*.rdoc', 'ext/http11/http11.c']
|
|
|
|
|
|
|
|
desc "Does a full compile, test run"
|
|
|
|
task :default => [:compile, :test]
|
|
|
|
|
|
|
|
desc "Compiles all extensions"
|
|
|
|
task :compile => [:http11]
|
|
|
|
task :package => [:clean]
|
|
|
|
|
|
|
|
task :ragel do
|
|
|
|
sh %{/usr/local/bin/ragel ext/http11/http11_parser.rl | /usr/local/bin/rlcodegen -G2 -o ext/http11/http11_parser.c}
|
|
|
|
end
|
|
|
|
|
|
|
|
setup_extension("http11", "http11")
|
|
|
|
|
|
|
|
summary = "An experimental fast simple web server for Ruby."
|
|
|
|
test_file = "test/test_ws.rb"
|
2006-01-31 00:36:30 -05:00
|
|
|
setup_gem("mongrel", "0.2.0", "Zed A. Shaw", summary, [], test_file)
|