[前][次][番号順一覧][スレッド一覧]

ruby-changes:43752

From: nobu <ko1@a...>
Date: Sun, 7 Aug 2016 19:04:45 +0900 (JST)
Subject: [ruby-changes:43752] nobu:r55825 (trunk): extmk.rb: remove sysquote

nobu	2016-08-07 19:04:41 +0900 (Sun, 07 Aug 2016)

  New Revision: 55825

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55825

  Log:
    extmk.rb: remove sysquote
    
    * ext/extmk.rb (sysquote): removed.  unnecessary since r52161.

  Modified files:
    trunk/ext/extmk.rb
Index: ext/extmk.rb
===================================================================
--- ext/extmk.rb	(revision 55824)
+++ ext/extmk.rb	(revision 55825)
@@ -50,10 +50,6 @@ elsif !File.chardev?(@null = "/dev/null" https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L50
   @null = "nul"
 end
 
-def sysquote(x)
-  @quote ? x.quote : x
-end
-
 def verbose?
   $mflags.defined?("V") == "1"
 end
@@ -267,9 +263,9 @@ def extmake(target, basedir = 'ext') https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L263
 
       return parent ? [conf, lineno||0, message] : true
     end
-    args = sysquote($mflags)
+    args = $mflags
     unless $destdir.to_s.empty? or $mflags.defined?("DESTDIR")
-      args += [sysquote("DESTDIR=" + relative_from($destdir, "../"+prefix))]
+      args += ["DESTDIR=" + relative_from($destdir, "../"+prefix)]
     end
     if $static and ok and !$objs.empty? and !noinstall
       args += ["static"] unless $clean
@@ -812,7 +808,7 @@ elsif !$configure_only https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L808
   puts message
   $stdout.flush
   $mflags.concat(rubies)
-  system($make, *sysquote($mflags)) or exit($?.exitstatus)
+  system($make, *$mflags) or exit($?.exitstatus)
 end
 # :startdoc:
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]