summaryrefslogtreecommitdiff
path: root/ext/extmk.rb.in
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-03-26 10:46:30 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-03-26 10:46:30 +0000
commitce0de3f67b573957d15e8945784a0d4413c32734 (patch)
tree256b05deaf211f296563d0c802dbdebb05fe208f /ext/extmk.rb.in
parentb427d9e85990c37458ec3f64c540d3bd88b02d1c (diff)
* 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
Diffstat (limited to 'ext/extmk.rb.in')
-rw-r--r--ext/extmk.rb.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in
index 2116605..f191af76 100644
--- a/ext/extmk.rb.in
+++ b/ext/extmk.rb.in
@@ -41,6 +41,7 @@ $:.replace [$topdir, $top_srcdir, $top_srcdir+"/lib", "."]
require 'rbconfig.rb'
require 'find'
require 'ftools'
+require 'shellwords'
def rm_f(*files)
targets = []
@@ -296,8 +297,7 @@ def arg_config(config, default=nil)
if /mswin32|mingw/ =~ RUBY_PLATFORM and ENV["CONFIGURE_ARGS"]
args << " " << ENV["CONFIGURE_ARGS"]
end
- for arg in args.split
- arg.gsub! /^'|'$/, ''
+ for arg in Shellwords::shellwords(args)
next unless /^--/ =~ arg
arg, val = arg.split('=', 2)
$configure_args[arg] = val || true