Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added update bundle command

  • Loading branch information...
commit a7a9fadf01a3973570ecd40a577819d32b244b3a 1 parent 40a38ab
Matt Polito mattpolito authored
Showing with 27 additions and 0 deletions.
  1. +27 −0 Commands/Update Bundle.tmCommand
27 Commands/Update Bundle.tmCommand
View
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.