[#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:19416] Re: cannot find -lruby-static (PR#384)

From: nobu.nakada@...
Date: 2003-01-22 09:02:20 UTC
List: ruby-dev #19416
なかだです。

At Wed, 22 Jan 2003 12:45:44 +0900,
WATANABE Hirofumi wrote:
> gccにとっての$(prefix)は人によって違います。
> ここまで面倒見なくてもいいでしょう。

なるほど。もし面倒を見るとするなら、configureでtarget_prefixと
build_prefixという風に分ける必要がありそうですね。

> > および、extconf.rbとMakefileの依存ルールも入れてみましたが、
> > Makefile.inのAUTO_REMAKEのチェックはシェルに依存するので止めま
> > した。un.rbに入れば追加しますが。
> 
> un.rbもあり?というかこれは別に取り上げるべきか。cmpの件も含めて。

あれはあったほうがいいんじゃないかと思います。Makefileを自動で
更新するかのチェックをrubyにしてみました。

def remade
  setup do |argv, options|
    begin
      require 'mkmf'
      mkfile = "conftest.mk"
      open(mkfile, "w") do |f|
	f.puts "all:\n#{mkfile}: .force\n\t@echo AUTO_REMAKE\n.force:"
      end
      remake = false
      argv = [with_config("make-prog", ENV["MAKE"] || "make")] if argv.empty?
      error = STDERR.dup
      begin
	null = open("/dev/null", "r+")
      rescue Errno::ENOENT
	null = open("nul", "r+")
      end
      STDERR.reopen(null)
      null.close
      IO.foreach("|"+argv.join(" ")+" -f "+mkfile) do |l|
	remake ||= /^AUTO_REMAKE$/ =~ l
      end
      STDERR.reopen(error)
      error.close
      error = nil
      unless remake
	puts "Makefile updated, restart."
	exit 1
      end
    ensure
      STDERR.reopen(error) if error
      File.unlink(mkfile)
    end
  end
end

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

In This Thread