From 26b5e3b05ac8e09cc15b4cea93bb0d99413738e7 Mon Sep 17 00:00:00 2001 From: Yann Date: Sun, 1 Nov 2009 12:51:02 -0500 Subject: [PATCH] + "update via Git" command --- Commands/Update Bundle via Git.tmCommand | 26 ++++++++++++++++++++++++ info.plist | 1 + 2 files changed, 27 insertions(+) create mode 100644 Commands/Update Bundle via Git.tmCommand diff --git a/Commands/Update Bundle via Git.tmCommand b/Commands/Update Bundle via Git.tmCommand new file mode 100644 index 0000000..19061ea --- /dev/null +++ b/Commands/Update Bundle via Git.tmCommand @@ -0,0 +1,26 @@ + + + + + beforeRunningCommand + nop + command + cd "$TM_BUNDLE_PATH" + +echo "<pre>" +[ -d ".git" ] && git pull +[ ! -d .git ] && echo "You must install the bundle using Git in order to update via this command. More info: http://github.com/minimaldesign/mHTML.tmbundle" + +osascript -e 'tell app "TextMate" to reload bundles' + +echo "</pre>" + input + selection + name + Update Bundle via Git + output + showAsHTML + uuid + D6F8DB6E-2015-498E-8B20-6E2EC34637F4 + + diff --git a/info.plist b/info.plist index e94a7ad..69f1e5c 100644 --- a/info.plist +++ b/info.plist @@ -245,6 +245,7 @@ 8B7C5284-8665-408A-9EA5-469503B7EE54 479101F9-D223-422E-927D-97E97BAC326F AC460DE9-5703-4FDA-8729-D635BD3F50B3 + D6F8DB6E-2015-498E-8B20-6E2EC34637F4 2AF2A5A5-1009-4F85-A5D5-8FC94C72325D 8C3B4AE6-7DDE-4B71-B8DE-187CDD609F66 2AFCB76A-1D12-4520-A3B7-30A7F527DA1A