Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Switch to using requiredCommands.

  • Loading branch information...
commit 94aaa872b9dab846bebbfbded007bb3dae0e2cf0 1 parent 0dd8447
Michael Sheets authored October 01, 2012

Showing 1 changed file with 14 additions and 2 deletions. Show diff stats Hide diff stats

  1. 16  Commands/Run.plist
16  Commands/Run.plist
@@ -11,8 +11,6 @@
11 11
 TO_OCAML=${TM_OCAML:=ocamlc}
12 12
 TMPDIR=${TMPDIR:=/tmp}
13 13
 
14  
-require_cmd "$TO_OCAML"
15  
-
16 14
 # get a tempfile and fill it with the contents of our file
17 15
 SRCFILE=`/usr/bin/mktemp $TMPDIR/ocamlXXXXXX` || exit 1
18 16
 mv "$SRCFILE" "$SRCFILE".ml
@@ -47,6 +45,20 @@ rm -f "$DSTFILE"
47 45
 	<string>html</string>
48 46
 	<key>outputLocation</key>
49 47
 	<string>newWindow</string>
  48
+    <key>requiredCommands</key>
  49
+    <array>
  50
+    	<dict>
  51
+    		<key>command</key>
  52
+    		<string>ocamlc</string>
  53
+    		<key>locations</key>
  54
+    		<array>
  55
+    			<string>/opt/local/bin/ocamlc</string>
  56
+    			<string>/usr/local/bin/ocamlc</string>
  57
+    		</array>
  58
+    		<key>variable</key>
  59
+    		<string>TM_OCAML</string>
  60
+    	</dict>
  61
+    </array>
50 62
 	<key>scope</key>
51 63
 	<string>source.ocaml</string>
52 64
 	<key>semanticClass</key>

0 notes on commit 94aaa87

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