Skip to content
Browse files

Use requiredCommands.

  • Loading branch information...
1 parent e90bcf0 commit 3fdee4a412ad60677508710f68de66b013a8a7ae @infininight infininight committed Nov 21, 2011
Showing with 90 additions and 18 deletions.
  1. +30 −6 Commands/Compile & Run.tmCommand
  2. +30 −6 Commands/Compile Library.tmCommand
  3. +30 −6 Commands/Compile Macro.tmCommand
View
36 Commands/Compile & Run.tmCommand
@@ -1,28 +1,52 @@
<?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>saveActiveFile</string>
<key>command</key>
- <string>. "$TM_SUPPORT_PATH/lib/webpreview.sh"
+ <string>#!/usr/bin/env bash
+[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] &amp;&amp; . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
+
+. "$TM_SUPPORT_PATH/lib/webpreview.sh"
html_header "Compile &amp;amp; Run" "Nemerle"
-require_cmd ncc
-ncc "$TM_FILEPATH" -o "$TM_FILEPATH".exe &amp;&amp; mono "$TM_FILEPATH".exe
+"${TM_NEMERLE:-ncc}" "$TM_FILEPATH" -o "$TM_FILEPATH".exe &amp;&amp; mono "$TM_FILEPATH".exe
html_footer</string>
<key>input</key>
<string>document</string>
+ <key>inputFormat</key>
+ <string>text</string>
<key>keyEquivalent</key>
<string>@r</string>
<key>name</key>
<string>Compile &amp; Run</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>ncc</string>
+ <key>locations</key>
+ <array>
+ <string>/opt/local/bin/ncc</string>
+ <string>/usr/local/bin/ncc</string>
+ </array>
+ <key>variable</key>
+ <string>TM_NEMERLE</string>
+ </dict>
+ </array>
<key>scope</key>
<string>source.nemerle</string>
<key>uuid</key>
<string>AF355E00-4F11-11DB-B7AC-00112474B8F0</string>
+ <key>version</key>
+ <integer>2</integer>
</dict>
</plist>
View
36 Commands/Compile Library.tmCommand
@@ -1,26 +1,50 @@
<?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>saveActiveFile</string>
<key>command</key>
- <string>. "$TM_SUPPORT_PATH/lib/webpreview.sh"
+ <string>#!/usr/bin/env bash
+[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] &amp;&amp; . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
+
+. "$TM_SUPPORT_PATH/lib/webpreview.sh"
html_header "Compile Library" "Nemerle"
-require_cmd ncc
-ncc -t:library "$TM_FILEPATH" -o "$TM_FILEPATH".dll</string>
+"${TM_NEMERLE:-ncc}" -t:library "$TM_FILEPATH" -o "$TM_FILEPATH".dll</string>
<key>input</key>
<string>document</string>
+ <key>inputFormat</key>
+ <string>text</string>
<key>keyEquivalent</key>
<string>@R</string>
<key>name</key>
<string>Compile Library</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>ncc</string>
+ <key>locations</key>
+ <array>
+ <string>/opt/local/bin/ncc</string>
+ <string>/usr/local/bin/ncc</string>
+ </array>
+ <key>variable</key>
+ <string>TM_NEMERLE</string>
+ </dict>
+ </array>
<key>scope</key>
<string>source.nemerle</string>
<key>uuid</key>
<string>04046396-4FB2-11DB-ADD3-00112474B8F0</string>
+ <key>version</key>
+ <integer>2</integer>
</dict>
</plist>
View
36 Commands/Compile Macro.tmCommand
@@ -1,26 +1,50 @@
<?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>saveActiveFile</string>
<key>command</key>
- <string>. "$TM_SUPPORT_PATH/lib/webpreview.sh"
+ <string>#!/usr/bin/env bash
+[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] &amp;&amp; . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
+
+. "$TM_SUPPORT_PATH/lib/webpreview.sh"
html_header "Compile Macro" "Nemerle"
-require_cmd ncc
-ncc -r:Nemerle.Compiler -t:library "$TM_FILEPATH" -o "$TM_FILEPATH".dll</string>
+"${TM_NEMERLE:-ncc}" -r:Nemerle.Compiler -t:library "$TM_FILEPATH" -o "$TM_FILEPATH".dll</string>
<key>input</key>
<string>document</string>
+ <key>inputFormat</key>
+ <string>text</string>
<key>keyEquivalent</key>
<string>@R</string>
<key>name</key>
<string>Compile Macro</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>ncc</string>
+ <key>locations</key>
+ <array>
+ <string>/opt/local/bin/ncc</string>
+ <string>/usr/local/bin/ncc</string>
+ </array>
+ <key>variable</key>
+ <string>TM_NEMERLE</string>
+ </dict>
+ </array>
<key>scope</key>
<string>source.nemerle</string>
<key>uuid</key>
<string>BBD358C1-4FB6-11DB-ADD3-00112474B8F0</string>
+ <key>version</key>
+ <integer>2</integer>
</dict>
</plist>

0 comments on commit 3fdee4a

Please sign in to comment.
Something went wrong with that request. Please try again.