Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use requiredCommands.

  • Loading branch information...
commit 9c5ccb12d892874d86e944bbaa98e75256759053 1 parent a8b7e0f
@infininight infininight authored
Showing with 58 additions and 10 deletions.
  1. +29 −5 Commands/CM Build.tmCommand
  2. +29 −5 Commands/Run in SML.plist
View
34 Commands/CM Build.tmCommand
@@ -1,23 +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_SML:=sml}"
-echo "CM.make \"sources.cm\";"|"$TM_SML"|pre</string>
+ <string>#!/usr/bin/env bash
+[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] &amp;&amp; . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
+
+echo "CM.make \"sources.cm\";"|"${TM_SML:-sml}"|pre</string>
<key>input</key>
<string>none</string>
+ <key>inputFormat</key>
+ <string>text</string>
<key>keyEquivalent</key>
<string>^R</string>
<key>name</key>
<string>Build CM</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>sml</string>
+ <key>locations</key>
+ <array>
+ <string>/opt/local/bin/sml</string>
+ <string>/usr/local/bin/sml</string>
+ </array>
+ <key>variable</key>
+ <string>TM_SML</string>
+ </dict>
+ </array>
<key>scope</key>
<string>source.ml</string>
<key>uuid</key>
<string>1EA6E877-4B4E-44EC-9118-9295A0F1432D</string>
+ <key>version</key>
+ <integer>2</integer>
</dict>
</plist>
View
34 Commands/Run in SML.plist
@@ -1,5 +1,5 @@
<?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>autoScrollOutput</key>
@@ -7,19 +7,43 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>require_cmd "${TM_SML:=sml}"
-"$TM_SML"|pre</string>
+ <string>#!/usr/bin/env bash
+[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] &amp;&amp; . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
+
+"${TM_SML:-sml}"|pre</string>
<key>input</key>
<string>selection</string>
+ <key>inputFormat</key>
+ <string>text</string>
<key>keyEquivalent</key>
<string>@r</string>
<key>name</key>
<string>Run in SML</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>sml</string>
+ <key>locations</key>
+ <array>
+ <string>/opt/local/bin/sml</string>
+ <string>/usr/local/bin/sml</string>
+ </array>
+ <key>variable</key>
+ <string>TM_SML</string>
+ </dict>
+ </array>
<key>scope</key>
<string>source.ml</string>
<key>uuid</key>
<string>18819157-C273-4649-9013-3A2705993795</string>
+ <key>version</key>
+ <integer>2</integer>
</dict>
</plist>
Please sign in to comment.
Something went wrong with that request. Please try again.