From 749ad16aa7015438a12686556d4567a7b295f27a Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 26 Oct 2010 03:47:15 +0000 Subject: * common.mk (pkgconfig-data): moved from Makefile.in. * tool/rbinstall.rb: install pc file only if non-empty. [ruby-core:32901] #3983 * win32/Makefile.sub (ruby_pc): create pc file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/rbinstall.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool') diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index f4ea9cc1ea..de5319829d 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -340,7 +340,7 @@ end install?(:local, :arch, :data) do pc = CONFIG["ruby_pc"] - if File.exist?(pc) + if pc and File.file?(pc) and File.size?(pc) prepare "pkgconfig data", pkgconfigdir = File.join(libdir, "pkgconfig") install pc, pkgconfigdir, :mode => $data_mode end -- cgit v1.2.3