1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Fix ragel tasks for new puma_http11 paths.

This commit is contained in:
Charles Oliver Nutter 2011-11-22 16:01:17 -06:00
parent dcffc1b765
commit 6f26608a19

View file

@ -1,7 +1,7 @@
# the following tasks ease the build of C file from Ragel one
file 'ext/http11/http11_parser.c' => ['ext/http11/http11_parser.rl'] do |t|
file 'ext/puma_http11/http11_parser.c' => ['ext/puma_http11/http11_parser.rl'] do |t|
begin
sh "ragel #{t.prerequisites.last} -C -G2 -o #{t.name}"
rescue
@ -9,7 +9,7 @@ file 'ext/http11/http11_parser.c' => ['ext/http11/http11_parser.rl'] do |t|
end
end
file 'ext/http11/org/jruby/puma/Http11Parser.java' => ['ext/http11/http11_parser.java.rl'] do |t|
file 'ext/puma_http11/org/jruby/puma/Http11Parser.java' => ['ext/puma_http11/http11_parser.java.rl'] do |t|
begin
sh "ragel #{t.prerequisites.last} -J -G2 -o #{t.name}"
rescue
@ -17,4 +17,4 @@ file 'ext/http11/org/jruby/puma/Http11Parser.java' => ['ext/http11/http11_parser
end
end
task :ragel => (defined?(JRUBY_VERSION) ? 'ext/http11/org/jruby/puma/Http11Parser.java' : 'ext/http11/http11_parser.c')
task :ragel => (defined?(JRUBY_VERSION) ? 'ext/puma_http11/org/jruby/puma/Http11Parser.java' : 'ext/puma_http11/http11_parser.c')