Permalink
Browse files

Use requiredCommands.

  • Loading branch information...
1 parent e40730f commit 6528eb4bd578072ffbf9c8580eaa59e29b56e130 @infininight infininight committed Nov 28, 2011
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!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>require_cmd "${TM_CVS:=cvs}" "If you have installed cvs, then you need to either update your &lt;tt&gt;PATH&lt;/tt&gt; or set the &lt;tt&gt;TM_CVS&lt;/tt&gt; shell variable (e.g. in Preferences / Advanced)"
+ <string>#!/usr/bin/env bash
ruby -r "$TM_SUPPORT_PATH/lib/shelltokenize.rb" &lt;&lt;END
cvs = ENV['TM_CVS'] || "cvs"
@@ -15,13 +15,35 @@ ruby -r "$TM_SUPPORT_PATH/lib/shelltokenize.rb" &lt;&lt;END
END</string>
<key>input</key>
<string>none</string>
+ <key>inputFormat</key>
+ <string>text</string>
<key>keyEquivalent</key>
<string>^Z</string>
<key>name</key>
<string>Add to Repository</string>
- <key>output</key>
- <string>showAsTooltip</string>
+ <key>outputCaret</key>
+ <string>afterOutput</string>
+ <key>outputFormat</key>
+ <string>text</string>
+ <key>outputLocation</key>
+ <string>toolTip</string>
+ <key>requiredCommands</key>
+ <array>
+ <dict>
+ <key>command</key>
+ <string>cvs</string>
+ <key>locations</key>
+ <array>
+ <string>/opt/local/bin/cvs</string>
+ <string>/usr/local/bin/cvs</string>
+ </array>
+ <key>variable</key>
+ <string>TM_CVS</string>
+ </dict>
+ </array>
<key>uuid</key>
<string>ADCD4FCD-D39D-41B3-88D0-84C5BE115535</string>
+ <key>version</key>
+ <integer>2</integer>
</dict>
</plist>
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!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>require_cmd "${TM_CVS:=cvs}" "If you have installed cvs, then you need to either update your &lt;tt&gt;PATH&lt;/tt&gt; or set the &lt;tt&gt;TM_CVS&lt;/tt&gt; shell variable (e.g. in Preferences / Advanced)"
+ <string>#!/usr/bin/env bash
ruby &lt;&lt;'END'
@@ -28,13 +28,35 @@ END
</string>
<key>input</key>
<string>none</string>
+ <key>inputFormat</key>
+ <string>text</string>
<key>keyEquivalent</key>
<string>^Z</string>
<key>name</key>
<string>Annotate Line</string>
- <key>output</key>
- <string>showAsTooltip</string>
+ <key>outputCaret</key>
+ <string>afterOutput</string>
+ <key>outputFormat</key>
+ <string>text</string>
+ <key>outputLocation</key>
+ <string>toolTip</string>
+ <key>requiredCommands</key>
+ <array>
+ <dict>
+ <key>command</key>
+ <string>cvs</string>
+ <key>locations</key>
+ <array>
+ <string>/opt/local/bin/cvs</string>
+ <string>/usr/local/bin/cvs</string>
+ </array>
+ <key>variable</key>
+ <string>TM_CVS</string>
+ </dict>
+ </array>
<key>uuid</key>
<string>76E34DE2-1DCB-47B8-BA2F-4F3341A3AB9C</string>
+ <key>version</key>
+ <integer>2</integer>
</dict>
</plist>
View
@@ -1,23 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!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>require_cmd "${TM_CVS:=cvs}" "If you have installed cvs, then you need to either update your &lt;tt&gt;PATH&lt;/tt&gt; or set the &lt;tt&gt;TM_CVS&lt;/tt&gt; shell variable (e.g. in Preferences / Advanced)"
+ <string>#!/usr/bin/env bash
cd "$TM_DIRECTORY" &amp;&amp;
-"$TM_CVS" annotate "$TM_FILENAME"</string>
+"${TM_CVS:=cvs}" annotate "$TM_FILENAME"</string>
<key>input</key>
<string>none</string>
+ <key>inputFormat</key>
+ <string>text</string>
<key>keyEquivalent</key>
<string>^Z</string>
<key>name</key>
<string>Annotate</string>
- <key>output</key>
- <string>openAsNewDocument</string>
+ <key>outputCaret</key>
+ <string>afterOutput</string>
+ <key>outputFormat</key>
+ <string>text</string>
+ <key>outputLocation</key>
+ <string>newWindow</string>
+ <key>requiredCommands</key>
+ <array>
+ <dict>
+ <key>command</key>
+ <string>cvs</string>
+ <key>locations</key>
+ <array>
+ <string>/opt/local/bin/cvs</string>
+ <string>/usr/local/bin/cvs</string>
+ </array>
+ <key>variable</key>
+ <string>TM_CVS</string>
+ </dict>
+ </array>
<key>uuid</key>
<string>338A3670-DA8E-4036-87E0-DF2E212254C8</string>
+ <key>version</key>
+ <integer>2</integer>
</dict>
</plist>
@@ -1,14 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!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>require_cmd "${TM_CVS:=cvs}" "If you have installed cvs, then you need to either update your &lt;tt&gt;PATH&lt;/tt&gt; or set the &lt;tt&gt;TM_CVS&lt;/tt&gt; shell variable (e.g. in Preferences / Advanced)"
+ <string>#!/usr/bin/env bash
+[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] &amp;&amp; . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
cd "$TM_DIRECTORY"
-revs=$("$TM_CVS" log "$TM_FILENAME"|grep '^revision' \
+revs=$("${TM_CVS:=cvs}" log "$TM_FILENAME"|grep '^revision' \
2&gt; &gt;(CocoaDialog progressbar --indeterminate \
--title "Check out Revision…" \
--text "Retrieving List of Revisions…" \
@@ -46,13 +47,35 @@ print CVS::VersionedFile.version(ENV['TM_FILEPATH'], ENV['REVS'])
END</string>
<key>input</key>
<string>none</string>
+ <key>inputFormat</key>
+ <string>text</string>
<key>keyEquivalent</key>
<string>^Z</string>
<key>name</key>
<string>Check out Revision...</string>
- <key>output</key>
+ <key>outputCaret</key>
+ <string>interpolateByLine</string>
+ <key>outputFormat</key>
+ <string>text</string>
+ <key>outputLocation</key>
<string>replaceDocument</string>
+ <key>requiredCommands</key>
+ <array>
+ <dict>
+ <key>command</key>
+ <string>cvs</string>
+ <key>locations</key>
+ <array>
+ <string>/opt/local/bin/cvs</string>
+ <string>/usr/local/bin/cvs</string>
+ </array>
+ <key>variable</key>
+ <string>TM_CVS</string>
+ </dict>
+ </array>
<key>uuid</key>
<string>2C5DB599-04DC-40CC-BBE8-0A73620BC42A</string>
+ <key>version</key>
+ <integer>2</integer>
</dict>
</plist>
View
@@ -1,26 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!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>require_cmd "${TM_CVS:=cvs}" "If you have installed cvs, then you need to either update your &lt;tt&gt;PATH&lt;/tt&gt; or set the &lt;tt&gt;TM_CVS&lt;/tt&gt; shell variable (e.g. in Preferences / Advanced)"
+ <string>#!/usr/bin/env bash
-export TM_CVS
export CommitWindow="$TM_SUPPORT_PATH/bin/CommitWindow.app/Contents/MacOS/CommitWindow"
cd "${TM_PROJECT_DIRECTORY:-$TM_DIRECTORY}"
ruby -- "${TM_BUNDLE_SUPPORT}/cvs_commit.rb"</string>
<key>input</key>
<string>none</string>
+ <key>inputFormat</key>
+ <string>text</string>
<key>keyEquivalent</key>
<string>^Z</string>
<key>name</key>
<string>Commit...</string>
- <key>output</key>
- <string>showAsHTML</string>
+ <key>outputCaret</key>
+ <string>afterOutput</string>
+ <key>outputFormat</key>
+ <string>html</string>
+ <key>outputLocation</key>
+ <string>newWindow</string>
+ <key>requiredCommands</key>
+ <array>
+ <dict>
+ <key>command</key>
+ <string>cvs</string>
+ <key>locations</key>
+ <array>
+ <string>/opt/local/bin/cvs</string>
+ <string>/usr/local/bin/cvs</string>
+ </array>
+ <key>variable</key>
+ <string>TM_CVS</string>
+ </dict>
+ </array>
<key>uuid</key>
<string>BE6728A5-AFC4-4D98-9EC7-C2E951483B71</string>
+ <key>version</key>
+ <integer>2</integer>
</dict>
</plist>
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!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>require_cmd "${TM_CVS:=cvs}" "If you have installed cvs, then you need to either update your &lt;tt&gt;PATH&lt;/tt&gt; or set the &lt;tt&gt;TM_CVS&lt;/tt&gt; shell variable (e.g. in Preferences / Advanced)"
+ <string>#!/usr/bin/env bash
ruby &lt;&lt;'END'
@@ -18,13 +18,35 @@ END
</string>
<key>input</key>
<string>none</string>
+ <key>inputFormat</key>
+ <string>text</string>
<key>keyEquivalent</key>
<string>^Z</string>
<key>name</key>
<string>Diff With Newest (HEAD)</string>
- <key>output</key>
- <string>openAsNewDocument</string>
+ <key>outputCaret</key>
+ <string>afterOutput</string>
+ <key>outputFormat</key>
+ <string>text</string>
+ <key>outputLocation</key>
+ <string>newWindow</string>
+ <key>requiredCommands</key>
+ <array>
+ <dict>
+ <key>command</key>
+ <string>cvs</string>
+ <key>locations</key>
+ <array>
+ <string>/opt/local/bin/cvs</string>
+ <string>/usr/local/bin/cvs</string>
+ </array>
+ <key>variable</key>
+ <string>TM_CVS</string>
+ </dict>
+ </array>
<key>uuid</key>
<string>22FC4CAB-4664-4CFC-BC8E-C2294616E464</string>
+ <key>version</key>
+ <integer>2</integer>
</dict>
</plist>
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!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>require_cmd "${TM_CVS:=cvs}" "If you have installed cvs, then you need to either update your &lt;tt&gt;PATH&lt;/tt&gt; or set the &lt;tt&gt;TM_CVS&lt;/tt&gt; shell variable (e.g. in Preferences / Advanced)"
+ <string>#!/usr/bin/env bash
ruby &lt;&lt;'END'
@@ -18,13 +18,35 @@ END
</string>
<key>input</key>
<string>none</string>
+ <key>inputFormat</key>
+ <string>text</string>
<key>keyEquivalent</key>
<string>^Z</string>
<key>name</key>
<string>Diff With Previous Revision (PREV)</string>
- <key>output</key>
- <string>openAsNewDocument</string>
+ <key>outputCaret</key>
+ <string>afterOutput</string>
+ <key>outputFormat</key>
+ <string>text</string>
+ <key>outputLocation</key>
+ <string>newWindow</string>
+ <key>requiredCommands</key>
+ <array>
+ <dict>
+ <key>command</key>
+ <string>cvs</string>
+ <key>locations</key>
+ <array>
+ <string>/opt/local/bin/cvs</string>
+ <string>/usr/local/bin/cvs</string>
+ </array>
+ <key>variable</key>
+ <string>TM_CVS</string>
+ </dict>
+ </array>
<key>uuid</key>
<string>E29C9E3B-B7FB-4ED1-94C3-2F702CD090B5</string>
+ <key>version</key>
+ <integer>2</integer>
</dict>
</plist>
Oops, something went wrong.

0 comments on commit 6528eb4

Please sign in to comment.