summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-26 10:29:05 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-26 10:29:05 +0000
commit18caa8f178c971ff61ccc4c5730c657a2bac3e84 (patch)
tree35aab80451fa8398cb28ed7699d71ab92b18d1f8
parent8b222cea6bcd69b6a854be03f2362c5961b43a03 (diff)
* instruby.rb ($mflags.set?): Check $make instead of $nmake, sinse
there is no such a variable. * instruby.rb ($mflags.set?), ext/extmk.rb ($mflags.set?): Return false if unmatched. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog8
-rw-r--r--ext/extmk.rb1
-rw-r--r--instruby.rb3
3 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cda29cc593..a5f1b2f16a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Sun Jan 26 19:23:10 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * instruby.rb ($mflags.set?): Check $make instead of $nmake, sinse
+ there is no such a variable.
+
+ * instruby.rb ($mflags.set?), ext/extmk.rb ($mflags.set?): Return
+ false if unmatched.
+
Sun Jan 26 17:53:04 2003 Akinori MUSHA <knu@iDaemons.org>
* instruby.rb (parse_args), ext/extmk.rb (parse_args): Detect -n
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 46a17074f4..5e13d9ffb0 100644
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -140,6 +140,7 @@ def parse_args()
# Only nmake puts flags together
if $nmake == ?m
grep(/^-(?!-).*#{'%c' % flag}/i) { return true }
+ false
else
include?('-%c' % flag)
end
diff --git a/instruby.rb b/instruby.rb
index e69ec072c4..fc8639f112 100644
--- a/instruby.rb
+++ b/instruby.rb
@@ -36,8 +36,9 @@ def parse_args()
def $mflags.set?(flag)
# Only nmake puts flags together
- if $nmake == ?m
+ if /nmake/ =~ $make
grep(/^-(?!-).*#{'%c' % flag}/i) { return true }
+ false
else
include?('-%c' % flag)
end