summaryrefslogtreecommitdiff
path: root/mkconfig.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-11-08 09:21:59 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-11-08 09:21:59 +0000
commitcf4451e8c27936dcd71b5eac7105ff52e02f1e95 (patch)
tree14d1818ca2fd8543ef14ccdcb47c55827bdf9815 /mkconfig.rb
parentdc98adf839d0d68c4c18647a1db2fb3dc9be8cc4 (diff)
* file.c (path_check_1): forgot to initialize 'p'.
* mkconfig.rb: use String#dump to generate Ruby string literal. * range.c (range_eql): should override 'eql?' * array.c (rb_ary_hash): should override 'hash' too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mkconfig.rb')
-rw-r--r--mkconfig.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkconfig.rb b/mkconfig.rb
index 5107ef69d7..05b5916997 100644
--- a/mkconfig.rb
+++ b/mkconfig.rb
@@ -39,9 +39,9 @@ File.foreach "config.status" do |line|
next if $install_name and /^RUBY_INSTALL_NAME$/ =~ name
next if $so_name and /^RUBY_SO_NAME$/ =~ name
v = " CONFIG[\"" + name + "\"] = " +
- val.sub(/^\s*(.*)\s*$/, '"\1"').gsub(/\$\{?(\w+)\}?/) {
+ val.sub(/^\s*(.*)\s*$/, '\1').gsub(/\$\{?(\w+)\}?/) {
"$(#{$1})"
- } + "\n"
+ }.dump + "\n"
if fast[name]
v_fast << v
else