summaryrefslogtreecommitdiff
path: root/tool/compile_prelude.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-06 01:22:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-06 01:22:21 +0000
commita06fc80da67570a53c4790f7d7e053222aeef2a5 (patch)
tree18519c1797e7ede819894824ff30ae6b597f4e7f /tool/compile_prelude.rb
parent657e13262b7d71dfe6e2d656250d62ea0c806287 (diff)
* 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
Diffstat (limited to 'tool/compile_prelude.rb')
-rw-r--r--tool/compile_prelude.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/compile_prelude.rb b/tool/compile_prelude.rb
index 04ecdf4..70197ae 100644
--- a/tool/compile_prelude.rb
+++ b/tool/compile_prelude.rb
@@ -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 = {
"\\" => "\\\\",