summaryrefslogtreecommitdiff
path: root/ext
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
commit7b07b8368f55ab05b49c1e9c3dfdcbccb4a74122 (patch)
tree6050ef0d35c9c18767dbc22dd49f41555758d151 /ext
parentcc009419cc1dfb232d9be0f6c0311cbf0f41af2d (diff)
* ext/extmk.rb.in (arg_config): should use Shellwords::shellwords.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-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 1f9ebf3f61..7a8afe586f 100644
--- a/ext/extmk.rb.in
+++ b/ext/extmk.rb.in
@@ -39,6 +39,7 @@ $topdir = File.expand_path("..")
$:.replace [$top_srcdir, $top_srcdir+"/lib", "."]
require 'find'
+require 'shellwords'
def rm_f(*files)
targets = []
@@ -297,8 +298,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
if /=/ =~ arg
$configure_args[$`] = $'