* ext/extmk.rb.in (arg_config): should use Shellwords::shellwords.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b427d9e859
commit
ce0de3f67b
@ -3,6 +3,8 @@ Tue Mar 26 18:45:15 2002 WATANABE Hirofumi <eban@ruby-lang.org>
|
|||||||
* configure.in (FILE_READPTR): check bufread instead of bufend
|
* configure.in (FILE_READPTR): check bufread instead of bufend
|
||||||
for uClibc.
|
for uClibc.
|
||||||
|
|
||||||
|
* ext/extmk.rb.in (arg_config): should use Shellwords::shellwords.
|
||||||
|
|
||||||
Tue Mar 26 01:56:33 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Tue Mar 26 01:56:33 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* parse.y (primary): while/until statement modifiers to "begin"
|
* parse.y (primary): while/until statement modifiers to "begin"
|
||||||
|
@ -41,6 +41,7 @@ $:.replace [$topdir, $top_srcdir, $top_srcdir+"/lib", "."]
|
|||||||
require 'rbconfig.rb'
|
require 'rbconfig.rb'
|
||||||
require 'find'
|
require 'find'
|
||||||
require 'ftools'
|
require 'ftools'
|
||||||
|
require 'shellwords'
|
||||||
|
|
||||||
def rm_f(*files)
|
def rm_f(*files)
|
||||||
targets = []
|
targets = []
|
||||||
@ -296,8 +297,7 @@ def arg_config(config, default=nil)
|
|||||||
if /mswin32|mingw/ =~ RUBY_PLATFORM and ENV["CONFIGURE_ARGS"]
|
if /mswin32|mingw/ =~ RUBY_PLATFORM and ENV["CONFIGURE_ARGS"]
|
||||||
args << " " << ENV["CONFIGURE_ARGS"]
|
args << " " << ENV["CONFIGURE_ARGS"]
|
||||||
end
|
end
|
||||||
for arg in args.split
|
for arg in Shellwords::shellwords(args)
|
||||||
arg.gsub! /^'|'$/, ''
|
|
||||||
next unless /^--/ =~ arg
|
next unless /^--/ =~ arg
|
||||||
arg, val = arg.split('=', 2)
|
arg, val = arg.split('=', 2)
|
||||||
$configure_args[arg] = val || true
|
$configure_args[arg] = val || true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user