Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add requiredCommands to locate escript.

Fixes #5.
  • Loading branch information...
commit 0848073468dfc5d4699eff66d99eb6b2c87c582a 1 parent 8d73791
@infininight infininight authored
Showing with 23 additions and 3 deletions.
  1. +23 −3 Commands/Build.tmCommand
View
26 Commands/Build.tmCommand
@@ -21,7 +21,7 @@ crawl("src", _Tokens, _File, _Opts) ->
crawl(_, _Tokens, File, Opts) ->
main(File, File, Opts).
-
+main(DisplayPath, File, Opts) ->
case compile:file(File, Opts) of
{ok, _Mod, []} ->
io:format("<script>window.close()</script>");
@@ -48,15 +48,35 @@ report_warnings(_Warnings) ->
</string>
<key>input</key>
<string>document</string>
+ <key>inputFormat</key>
+ <string>text</string>
<key>keyEquivalent</key>
<string>@b</string>
<key>name</key>
<string>Compile</string>
- <string>Compile</string>
- <key>output</key>
+ <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>escript</string>
+ <key>locations</key>
+ <array>
+ <string>/usr/local/bin/escript</string>
+ <string>/opt/local/bin/escript</string>
+ </array>
+ </dict>
+ </array>
<key>scope</key>
<string>source.erlang</string>
<key>uuid</key>
<string>C340B2B5-3B6A-4756-860A-9687F4B54259</string>
+ <key>version</key>
+ <integer>2</integer>
</dict>
</plist>
Please sign in to comment.
Something went wrong with that request. Please try again.