From ec50e32dbdd78e7f44783e1bd1d53dfde81ad61d Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 5 Nov 2010 22:30:13 +0000 Subject: * tool/rbinstall.rb (bin-comm): prepend prolog shell script if necessary. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/rbinstall.rb | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'tool/rbinstall.rb') diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index de5319829d..eec790b3ee 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -302,6 +302,7 @@ lib = CONFIG["LIBRUBY"] arc = CONFIG["LIBRUBY_A"] major = CONFIG["MAJOR"] minor = CONFIG["MINOR"] +load_relative = configure_args.include?("--enable-load-relative") install?(:local, :arch, :bin, :'bin-arch') do prepare "binary commands", bindir @@ -381,6 +382,23 @@ install?(:doc, :capi) do install_recursive "doc/capi", capidir, :mode => $data_mode end +if load_relative + PROLOG_SCRIPT = </dev/null; pwd` +EOS + if CONFIG["LIBRUBY_RELATIVE"] != 'yes' and libpathenv = CONFIG["LIBPATHENV"] + pathsep = File::PATH_SEPARATOR + PROLOG_SCRIPT << <