[#19261] lstripped here-document (Re: comments and continuing strings on the next line) — nobu.nakada@...

なかだです。

29 messages 2003/01/01
[#19360] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "K.Kosako" <kosako@...> 2003/01/15

nobu.nakada@nifty.ne.jpさんの

[#19361] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "NAKAMURA, Hiroshi" <nakahiro@...> 2003/01/15

なひです。

[#19364] Re: lstripped here-document (Re: comments and continuing strings on the next line) — nobu.nakada@... 2003/01/17

なかだです。

[#19366] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "NAKAMURA, Hiroshi" <nakahiro@...> 2003/01/17

なひです。

[#19299] [BUG] errno == 0 — Kazuhiro Yoshida <moriq@...>

もりきゅうです。win32だけかもしれません。

22 messages 2003/01/04
[#19301] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19302] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19303] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19304] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19306] Re: [BUG] errno == 0 — nobu.nakada@... 2003/01/05

なかだです。

[ruby-dev:19443] Re: recursive dryrun (Re: [ruby-cvs] ruby, ruby/ext, ruby/win32, ruby/bcc32: * instruby.rb, ext/extmk.rb, Makefile.in, win32/Makefile.sub,)

From: nobu.nakada@...
Date: 2003-01-27 16:37:06 UTC
List: ruby-dev #19443
なかだです。

At Sun, 26 Jan 2003 08:27:54 +0900,
Akinori MUSHA wrote:
>  ただ、直下のコメントに書いてあるように、 MAKEFLAGS にフラグを
> くっつけて渡してくるのは nmake だけみたいです。他の環境で引数を

GNU makeではMAKEFLAGSにマクロも含まれるので、makeのコマンドライ
ンでオプションなしでマクロだけ指定すると、マクロ定義に`-'が付い
て不正なオプションになってしまいます。

# ext/extmk.rbは同じなので省略。


Index: instruby.rb
===================================================================
RCS file: /cvs/ruby/src/ruby/instruby.rb,v
retrieving revision 1.47
diff -u -2 -p -r1.47 instruby.rb
--- instruby.rb	26 Jan 2003 10:29:05 -0000	1.47
+++ instruby.rb	27 Jan 2003 16:34:08 -0000
@@ -28,8 +28,9 @@ def parse_args()
   # So we use MFLAGS if defined, otherwise use ('-' + MAKEFLAGS).
   if mflags.empty?
-    mflags = "-#{make_flags}" unless make_flags.empty?
+    mflags = make_flags unless make_flags.empty?
   end
 
   $mflags = Shellwords.shellwords(mflags)
+  $mflags.first.sub!(/\A[^-=]+\z/, '-\&') if $mflags.first
   $make, *rest = Shellwords.shellwords($make)
   $mflags.unshift(*rest) unless rest.empty?


-- 
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
    中田 伸悦

In This Thread