Skip to content

Commit

Permalink
Require Ragel >= 6.3 because it contains a critical fix for semantic …
Browse files Browse the repository at this point in the history
…conditions, which I plan to use.
  • Loading branch information
jgarber committed Sep 19, 2008
1 parent e27c9d3 commit 56f70c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Expand Up @@ -131,10 +131,10 @@ end
source = name.sub(/\.c$/, '.rl')
file name => [source, "#{ext}/redcloth_common.rl", "#{ext}/redcloth.h"] do
@ragel_v ||= `ragel -v`[/(version )(\S*)/,2].split('.').map{|s| s.to_i}
if @ragel_v[0] > 6 || (@ragel_v[0] == 6 && @ragel_v[1] >= 2)
if @ragel_v[0] > 6 || (@ragel_v[0] == 6 && @ragel_v[1] >= 3)
sh %{ragel #{source} -#{@code_style} -o #{name}}
else
STDERR.puts "Ragel 6.2 or greater is required to generate #{name}."
STDERR.puts "Ragel 6.3 or greater is required to generate #{name}."
exit(1)
end
end
Expand Down

0 comments on commit 56f70c8

Please sign in to comment.