<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,14 +5,15 @@
 	&lt;key&gt;beforeRunningCommand&lt;/key&gt;
 	&lt;string&gt;nop&lt;/string&gt;
 	&lt;key&gt;command&lt;/key&gt;
-	&lt;string&gt;$(type -p &quot;${TM_RUBY:-ruby}&quot;) -e'
+	&lt;string&gt;#!/usr/bin/env ruby
 require ENV[&quot;TM_SUPPORT_PATH&quot;] + &quot;/lib/tm/executor&quot;
 require ENV[&quot;TM_SUPPORT_PATH&quot;] + &quot;/lib/tm/save_current_document&quot;
 
 TextMate.save_current_document
 TextMate::Executor.make_project_master_current_document
 
-TextMate::Executor.run(ENV[&quot;TM_IO&quot;] || &quot;io&quot;, ENV[&quot;TM_FILEPATH&quot;], :version_args =&amp;gt; [&quot;2&amp;gt;&amp;amp;1&quot;, &quot;&amp;lt;&amp;lt;&amp;lt; \&quot;System version; System exit;\&quot;&quot;])'&amp;lt;&amp;amp;0&lt;/string&gt;
+TextMate::Executor.run(ENV[&quot;TM_IO&quot;] || &quot;io&quot;, ENV[&quot;TM_FILEPATH&quot;], :version_args =&amp;gt; [&quot;2&amp;gt;&amp;amp;1&quot;, '&amp;lt;&amp;lt;&amp;lt; &quot;System version; System exit;&quot;'])
+&lt;/string&gt;
 	&lt;key&gt;input&lt;/key&gt;
 	&lt;string&gt;document&lt;/string&gt;
 	&lt;key&gt;keyEquivalent&lt;/key&gt;</diff>
      <filename>Bundles/Io.tmbundle/Commands/Run Script.tmCommand</filename>
    </modified>
    <modified>
      <diff>@@ -3,9 +3,10 @@
 &lt;plist version=&quot;1.0&quot;&gt;
 &lt;dict&gt;
 	&lt;key&gt;beforeRunningCommand&lt;/key&gt;
-	&lt;string&gt;saveActiveFile&lt;/string&gt;
+	&lt;string&gt;nop&lt;/string&gt;
 	&lt;key&gt;command&lt;/key&gt;
-	&lt;string&gt;TM_JAVAMATE_GET_ARGS=1 javamate_bootstrap.sh&lt;/string&gt;
+	&lt;string&gt;#!/bin/sh
+TM_JAVAMATE_GET_ARGS=1 &quot;$TM_BUNDLE_SUPPORT/bin/javamate_bootstrap.sh&quot;&lt;/string&gt;
 	&lt;key&gt;input&lt;/key&gt;
 	&lt;string&gt;document&lt;/string&gt;
 	&lt;key&gt;keyEquivalent&lt;/key&gt;</diff>
      <filename>Bundles/Java.tmbundle/Commands/Compile &amp; Run (with args).tmCommand</filename>
    </modified>
    <modified>
      <diff>@@ -3,9 +3,10 @@
 &lt;plist version=&quot;1.0&quot;&gt;
 &lt;dict&gt;
 	&lt;key&gt;beforeRunningCommand&lt;/key&gt;
-	&lt;string&gt;saveActiveFile&lt;/string&gt;
+	&lt;string&gt;nop&lt;/string&gt;
 	&lt;key&gt;command&lt;/key&gt;
-	&lt;string&gt;javamate_bootstrap.sh&lt;/string&gt;
+	&lt;string&gt;#!/bin/sh
+&quot;$TM_BUNDLE_SUPPORT/bin/javamate_bootstrap.sh&quot;&lt;/string&gt;
 	&lt;key&gt;input&lt;/key&gt;
 	&lt;string&gt;document&lt;/string&gt;
 	&lt;key&gt;keyEquivalent&lt;/key&gt;</diff>
      <filename>Bundles/Java.tmbundle/Commands/Compile &amp; Run.tmCommand</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
-&lt;!DOCTYPE plist PUBLIC &quot;-//Apple Computer//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
+&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
 &lt;plist version=&quot;1.0&quot;&gt;
 &lt;dict&gt;
 	&lt;key&gt;autoScrollOutput&lt;/key&gt;
@@ -7,7 +7,8 @@
 	&lt;key&gt;beforeRunningCommand&lt;/key&gt;
 	&lt;string&gt;nop&lt;/string&gt;
 	&lt;key&gt;command&lt;/key&gt;
-	&lt;string&gt;&quot;${TM_RUBY:-ruby}&quot; -- &quot;$TM_BUNDLE_SUPPORT/lib/php_mate.rb&quot;&lt;/string&gt;
+	&lt;string&gt;#!/bin/sh
+/usr/bin/env ruby -- &quot;$TM_BUNDLE_SUPPORT/lib/php_mate.rb&quot;&lt;/string&gt;
 	&lt;key&gt;input&lt;/key&gt;
 	&lt;string&gt;document&lt;/string&gt;
 	&lt;key&gt;keyEquivalent&lt;/key&gt;</diff>
      <filename>Bundles/PHP.tmbundle/Commands/Run PHP.plist</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,7 @@
 	&lt;key&gt;beforeRunningCommand&lt;/key&gt;
 	&lt;string&gt;nop&lt;/string&gt;
 	&lt;key&gt;command&lt;/key&gt;
-	&lt;string&gt;$(type -p &quot;${TM_RUBY:-ruby}&quot;) -e'
+	&lt;string&gt;#!/usr/bin/env ruby
 require ENV[&quot;TM_SUPPORT_PATH&quot;] + &quot;/lib/tm/executor&quot;
 require ENV[&quot;TM_SUPPORT_PATH&quot;] + &quot;/lib/tm/save_current_document&quot;
 
@@ -41,7 +41,7 @@ TextMate::Executor.run(ENV[&quot;TM_PYTHON&quot;] || &quot;python&quot;, &quot;-u&quot;, ENV[&quot;TM_FILEPATH&quot;]) d
         &quot;&amp;lt;/a&amp;gt; in &amp;lt;strong&amp;gt;#{CGI::escapeHTML display_name}&amp;lt;/strong&amp;gt; at line #{line}&amp;lt;br/&amp;gt;\n&quot;
     end
   end
-end'&lt;/string&gt;
+end&lt;/string&gt;
 	&lt;key&gt;input&lt;/key&gt;
 	&lt;string&gt;document&lt;/string&gt;
 	&lt;key&gt;keyEquivalent&lt;/key&gt;</diff>
      <filename>Bundles/Python.tmbundle/Commands/Run Script.plist</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,7 @@
 export RUBYLIB=&quot;$TM_BUNDLE_SUPPORT/RubyMate${RUBYLIB:+:$RUBYLIB}&quot;
 export TM_RUBY=$(type -p &quot;${TM_RUBY:-ruby}&quot;)
 
-&quot;${TM_RUBY}&quot; -KU -- &quot;$TM_BUNDLE_SUPPORT/RubyMate/run_script.rb&quot;
+/usr/bin/env ruby -KU -- &quot;$TM_BUNDLE_SUPPORT/RubyMate/run_script.rb&quot;
 &lt;/string&gt;
 	&lt;key&gt;input&lt;/key&gt;
 	&lt;string&gt;document&lt;/string&gt;</diff>
      <filename>Bundles/Ruby.tmbundle/Commands/Run.tmCommand</filename>
    </modified>
    <modified>
      <diff>@@ -39,27 +39,23 @@ module TextMate
       unless dst.nil?
         FileUtils.touch(dst) unless File.exists?(dst) or not File.writable?(File.dirname(dst))
         return if File.exists?(dst) and File.read(dst) == doc
-      end
-      
-      if dst.nil?
+      else
         ENV['TM_FILEPATH']         = dst = TextMate::IO.tempfile(temp_ext).path
         ENV['TM_FILENAME']         = File.basename dst
         ENV['TM_FILE_IS_UNTITLED'] = &quot;true&quot;
         ENV['TM_DISPLAYNAME']      = 'untitled'
         Dir.chdir(File.dirname(ENV[&quot;TM_FILEPATH&quot;]))
-      elsif not File.writable? dst
+      end
+
+      begin
+        open(dst, 'w') { |io| io &lt;&lt; doc }
+      rescue Errno::EACCES
         ENV['TM_ORIG_FILEPATH']    = dst
         ENV['TM_ORIG_FILENAME']    = File.basename dst
         ENV['TM_FILEPATH']         = dst = TextMate::IO.tempfile(temp_ext).path
         ENV['TM_FILENAME']         = File.basename dst
         ENV['TM_DISPLAYNAME']     += ' (M)'
       end
-      
-      begin
-        open(dst, 'w') { |io| io &lt;&lt; doc }
-      rescue Errno::EACCES
-        # we already checked writable? so this is a real issue
-      end
     end
   end
 end
\ No newline at end of file</diff>
      <filename>Support/lib/tm/save_current_document.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4addbd70e5863f4b032dc64814f5c4cbbebb5ad0</id>
    </parent>
  </parents>
  <author>
    <name>Geoff Cheshire</name>
    <email>gcheshire@gmail.com</email>
  </author>
  <url>http://github.com/gtcaz/tmbundles4win/commit/971887bb5d2cbb1850d534e37b15e13e087a1828</url>
  <id>971887bb5d2cbb1850d534e37b15e13e087a1828</id>
  <committed-date>2009-11-02T18:36:36-08:00</committed-date>
  <authored-date>2009-11-02T18:36:36-08:00</authored-date>
  <message>Sync at Tue Nov 03 02:36:34 +0000 2009</message>
  <tree>8e774768f01fd80f611f580ae3e518681b70fdcc</tree>
  <committer>
    <name>Geoff Cheshire</name>
    <email>gcheshire@gmail.com</email>
  </committer>
</commit>
