1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* tool/compile_prelude.rb: allows extra suffix after .c.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-04-06 01:22:21 +00:00
parent 657e13262b
commit a06fc80da6

View file

@ -8,7 +8,7 @@ $:.unshift(File.expand_path("../..", __FILE__))
preludes = ARGV.dup
outfile = preludes.pop
init_name = outfile[/\w+(?=_prelude.c\z)/] || 'prelude'
init_name = outfile[/\w+(?=_prelude.c\b)/] || 'prelude'
C_ESC = {
"\\" => "\\\\",