[macruby-changes] [3193] MacRuby/trunk/bin/rubyc

source_changes at macosforge.org source_changes at macosforge.org
Tue Jan 5 17:15:30 PST 2010


Revision: 3193
          http://trac.macosforge.org/projects/ruby/changeset/3193
Author:   lsansonetti at apple.com
Date:     2010-01-05 17:15:29 -0800 (Tue, 05 Jan 2010)
Log Message:
-----------
generate better tmpfiles to allow multiple compilations of the same project (backported from Ed's branch)

Modified Paths:
--------------
    MacRuby/trunk/bin/rubyc

Modified: MacRuby/trunk/bin/rubyc
===================================================================
--- MacRuby/trunk/bin/rubyc	2010-01-06 00:59:27 UTC (rev 3192)
+++ MacRuby/trunk/bin/rubyc	2010-01-06 01:15:29 UTC (rev 3193)
@@ -341,7 +341,7 @@
   end
 
   def gen_tmpfile(base, ext)
-    file = File.join(@tmpdir, "#{base}.#{ext}")
+    file = File.join(@tmpdir, "#{base}-#{$$}.#{ext}")
     @tmpfiles << file
     file
   end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100105/63c00c62/attachment.html>


More information about the macruby-changes mailing list