summaryrefslogtreecommitdiff
path: root/template/fake.rb.in
diff options
context:
space:
mode:
Diffstat (limited to 'template/fake.rb.in')
-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 cdc999a821..5bbb3353bf 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)"