summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-23 01:32:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-23 01:32:57 +0000
commit6df02103887d8818fecaea4488df4504d229ac6f (patch)
tree5a4b406c20c8d8e2747206aa1ae87edb7c2347c1 /template
parent734b61518b85ad3fb9d6ba9406249166ec2404c0 (diff)
* template/fake.rb.in (ruby): suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rwxr-xr-xtemplate/fake.rb.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in
index cdc999a..5bbb335 100755
--- a/template/fake.rb.in
+++ b/template/fake.rb.in
@@ -1,7 +1,12 @@
baseruby="@BASERUBY@"
ruby="${RUBY-$baseruby}"
-"eval" "{ `expr \"$ruby\" : echo > /dev/null || echo exec` $ruby "'-r"`expr \"$0\" : / > /dev/null || pwd`/${0#/}" "$@";' "}" || "exit" "$?"
+"eval" "{" \
+"`expr \"$ruby\" : echo > /dev/null || echo exec`" \
+"$ruby" '-r"`expr \"$0\" : / > /dev/null || pwd`/${0#/}" "$@";' \
+"}" || "exit" "$?"
+ruby=ruby
class Object
+ remove_const :CROSS_COMPILING
CROSS_COMPILING = RUBY_PLATFORM
remove_const :RUBY_PLATFORM
remove_const :RUBY_VERSION
@@ -19,7 +24,6 @@ end
$:.unshift(File.expand_path("..", __FILE__))
posthook = proc do
- config = RbConfig::CONFIG
mkconfig = RbConfig::MAKEFILE_CONFIG
extout = File.expand_path(mkconfig["EXTOUT"], mkconfig["builddir"])
$arch_hdrdir = "#{extout}/include/$(arch)"