Permalink
Browse files

Merge branch 'master' of git://github.com/mattpolito/sass-textmate-bu…

…ndle into mattpolito/master
  • Loading branch information...
2 parents 3894ad0 + a7a9fad commit 177be73102ba60be867a228c82afa2d8ae24758f @seaofclouds committed Oct 2, 2008
Showing with 27 additions and 0 deletions.
  1. +27 −0 Commands/Update Bundle.tmCommand
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>cd "$TM_BUNDLE_PATH"
+
+echo "&lt;pre&gt;"
+[ -d ".svn" ] &amp;&amp; svn up
+[ -d ".git" ] &amp;&amp; git pull
+[ ! -d .svn ] &amp;&amp; [ ! -d .git ] &amp;&amp; echo "You must install the bundle using Subversion or Git in order to update via this command."
+
+osascript -e 'tell app "TextMate" to reload bundles'
+
+echo "&lt;/pre&gt;"</string>
+ <key>input</key>
+ <string>selection</string>
+ <key>name</key>
+ <string>Update Bundle</string>
+ <key>output</key>
+ <string>showAsHTML</string>
+ <key>uuid</key>
+ <string>3FB1865C-21D8-47B5-9059-670FFC58DFCF</string>
+</dict>
+</plist>

0 comments on commit 177be73

Please sign in to comment.