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

ruby-changes:52997

From: hsbt <ko1@a...>
Date: Sat, 20 Oct 2018 16:38:25 +0900 (JST)
Subject: [ruby-changes:52997] hsbt:r65211 (trunk): Mergr etc from github repository.

hsbt	2018-10-20 16:38:19 +0900 (Sat, 20 Oct 2018)

  New Revision: 65211

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

  Log:
    Mergr etc from github repository.
    
      * ext/etc/extconf.rb: It supports to generate dependency header
        on standalone gem with github repository.

  Modified files:
    trunk/ext/etc/extconf.rb
Index: ext/etc/extconf.rb
===================================================================
--- ext/etc/extconf.rb	(revision 65210)
+++ ext/etc/extconf.rb	(revision 65211)
@@ -41,6 +41,12 @@ have_struct_member('struct passwd', 'pw_ https://github.com/ruby/ruby/blob/trunk/ext/etc/extconf.rb#L41
 have_struct_member('struct passwd', 'pw_passwd', 'pwd.h')
 have_struct_member('struct group', 'gr_passwd', 'grp.h')
 
+# for https://github.com/ruby/etc
+srcdir = File.expand_path("..", __FILE__)
+if !File.exists?("#{srcdir}/constdefs.h")
+  %x[#{RbConfig.ruby} #{srcdir}/mkconstants.rb -o #{srcdir}/constdefs.h]
+end
+
 $distcleanfiles << "constdefs.h"
 
 create_makefile("etc")

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

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