Permalink
Browse files

Add requiredCommands section

This avoids having the user explicitly set PATH or TM_NINJA.
  • Loading branch information...
1 parent abd126b commit 60bfd2371a7f3e13d1c115dae3618ea063f36924 @sorbits sorbits committed Sep 26, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 Commands/Build.tmCommand
View
14 Commands/Build.tmCommand
@@ -61,6 +61,20 @@ end
<string>html</string>
<key>outputLocation</key>
<string>newWindow</string>
+ <key>requiredCommands</key>
+ <array>
+ <dict>
+ <key>command</key>
+ <string>ninja</string>
+ <key>variable</key>
+ <string>TM_NINJA</string>
+ <key>locations</key>
+ <array>
+ <string>/opt/local/bin/ninja</string>
+ <string>/usr/local/bin/ninja</string>
+ </array>
+ </dict>
+ </array>
<key>scope</key>
<string>attr.project.ninja - (text dyn.selection)</string>
<key>semanticClass</key>

0 comments on commit 60bfd23

Please sign in to comment.