Revision
572
Author
lsansonetti@apple.com
Date
2008-09-07 20:53:33 -0700 (Sun, 07 Sep 2008)

Log Message

do not unnecessarily markgc the dylibs, if running with a DESTDIR

Modified Paths

Diff

Modified: MacRuby/trunk/instruby.rb (571 => 572)


--- MacRuby/trunk/instruby.rb	2008-09-07 23:47:55 UTC (rev 571)
+++ MacRuby/trunk/instruby.rb	2008-09-08 03:53:33 UTC (rev 572)
@@ -527,9 +527,11 @@
     end
   end
   Dir.glob('/System/Library/Frameworks/**/BridgeSupport/*.dylib').each do |p|
-    unless system("./markgc '#{p}' >& /dev/null")
-      $stderr.puts "cannot markgc #{p}"
-      exit 1
+    unless File.exist?(touch_file)
+      unless system("./markgc '#{p}' >& /dev/null")
+        $stderr.puts "cannot markgc #{p}"
+        exit 1
+      end
     end
     unless $destdir.empty?
       dirname = File.dirname(p)