Skip to content

Commit

Permalink
Remove usage of TM_RUBY.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.textmate.org/trunk/Bundles/SVK.tmbundle@11967 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
infininight committed Nov 19, 2010
1 parent 784d641 commit 62c4fc5
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Commands/Add to Repository.plist
Expand Up @@ -7,7 +7,7 @@
<key>command</key>
<string>require_cmd "${TM_SVK:=svk}" "If you have installed svk, then you need to either update your &lt;tt&gt;PATH&lt;/tt&gt; or set the &lt;tt&gt;TM_SVK&lt;/tt&gt; shell variable (e.g. in Preferences / Advanced)"
"${TM_RUBY:=ruby}" -r "$TM_SUPPORT_PATH/lib/shelltokenize.rb" &lt;&lt;END
ruby -r "$TM_SUPPORT_PATH/lib/shelltokenize.rb" &lt;&lt;END
svk = ENV['TM_SVK'] || "svk"
puts %x{#{svk} add #{TextMate.selected_paths_for_shell}}
END</string>
Expand Down
2 changes: 1 addition & 1 deletion Commands/Blame.plist
Expand Up @@ -8,7 +8,7 @@
<string>require_cmd "${TM_SVK:=svk}" "If you have installed svk, then you need to either update your &lt;tt&gt;PATH&lt;/tt&gt; or set the &lt;tt&gt;TM_SVK&lt;/tt&gt; shell variable (e.g. in Preferences / Advanced)"
"${TM_SVK:=svk}" blame "$TM_FILEPATH" \
2&gt;&amp;1| "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/format_blame.rb"</string>
2&gt;&amp;1| ruby -- "${TM_BUNDLE_SUPPORT}/format_blame.rb"</string>
<key>input</key>
<string>none</string>
<key>keyEquivalent</key>
Expand Down
2 changes: 1 addition & 1 deletion Commands/Commit.plist
Expand Up @@ -13,7 +13,7 @@ export CommitWindow
TM_SVK="${TM_SVK:=svk}"
export TM_SVK
"${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/svk_commit.rb"
ruby -- "${TM_BUNDLE_SUPPORT}/svk_commit.rb"
</string>
<key>input</key>
<string>none</string>
Expand Down
6 changes: 0 additions & 6 deletions Commands/Help.plist
Expand Up @@ -82,12 +82,6 @@ These [static variables](?static_variables) allow you to tweak the behaviour of
The path to your svk executable.
- `TM_RUBY`
__Default__: `ruby`
Here you can tweak with what Ruby the formatting scripts will be executed.
- `TM_SVK_DATE_FORMAT`
__Default__: *not set* (No Changes, just show what SVK shows)
Expand Down
5 changes: 2 additions & 3 deletions Commands/Info.plist
Expand Up @@ -6,15 +6,14 @@
<string>nop</string>
<key>command</key>
<string>TM_SVK="${TM_SVK:=svk}"
TM_RUBY="${TM_RUBY:=ruby}"
FORMAT_INFO="${TM_BUNDLE_SUPPORT}/format_info.rb"
if [[ -z $TM_SELECTED_FILES ]]; then
"$TM_SVK" info "$TM_FILEPATH" \
2&gt;&amp;1| "$TM_RUBY" -- "$FORMAT_INFO"
2&gt;&amp;1| ruby -- "$FORMAT_INFO"
else
eval "$TM_SVK" info $TM_SELECTED_FILES \
2&gt;&amp;1| "$TM_RUBY" -- "$FORMAT_INFO"
2&gt;&amp;1| ruby -- "$FORMAT_INFO"
fi</string>
<key>input</key>
<string>none</string>
Expand Down
5 changes: 2 additions & 3 deletions Commands/Log.plist
Expand Up @@ -10,16 +10,15 @@
# only do the first one!
TM_SVK="${TM_SVK:=svk}"
TM_RUBY="${TM_RUBY:=ruby}"
FORMAT_LOG="${TM_BUNDLE_SUPPORT}/format_log.rb"
TM_SVK_LOG_RANGE="${TM_SVK_LOG_RANGE:=BASE:1}"
if [[ -z $TM_SELECTED_FILES ]]; then
"$TM_SVK" log -vr"$TM_SVK_LOG_RANGE" "$TM_FILEPATH" \
2&gt;&amp;1| "$TM_RUBY" -- "$FORMAT_LOG"
2&gt;&amp;1| ruby -- "$FORMAT_LOG"
else
eval "$TM_SVK" log -vr"$TM_SVK_LOG_RANGE" $TM_SELECTED_FILES \
2&gt;&amp;1| "$TM_RUBY" -- "$FORMAT_LOG"
2&gt;&amp;1| ruby -- "$FORMAT_LOG"
fi</string>
<key>input</key>
<string>none</string>
Expand Down
2 changes: 1 addition & 1 deletion Commands/Status.plist
Expand Up @@ -8,7 +8,7 @@
<string>export WorkPath="$TM_DIRECTORY"
# show it..
"${TM_SVK:=svk}" status "$WorkPath" 2&gt;&amp;1| "${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/format_status.rb"
"${TM_SVK:=svk}" status "$WorkPath" 2&gt;&amp;1| ruby -- "${TM_BUNDLE_SUPPORT}/format_status.rb"
</string>
<key>input</key>
<string>none</string>
Expand Down
2 changes: 1 addition & 1 deletion Commands/Update to Newest.plist
Expand Up @@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>saveModifiedFiles</string>
<key>command</key>
<string>"${TM_RUBY:=ruby}" -r "$TM_SUPPORT_PATH/lib/shelltokenize.rb" &lt;&lt;END
<string>ruby -r "$TM_SUPPORT_PATH/lib/shelltokenize.rb" &lt;&lt;END
svk = ENV['TM_SVK'] || "svk"
puts %x{#{svk} update #{TextMate.selected_paths_for_shell}}
END
Expand Down

0 comments on commit 62c4fc5

Please sign in to comment.