Skip to content

Commit

Permalink
Switch to using requiredCommands.
Browse files Browse the repository at this point in the history
  • Loading branch information
infininight committed Oct 1, 2012
1 parent 0dd8447 commit 94aaa87
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Commands/Run.plist
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
TO_OCAML=${TM_OCAML:=ocamlc}
TMPDIR=${TMPDIR:=/tmp}
require_cmd "$TO_OCAML"
# get a tempfile and fill it with the contents of our file
SRCFILE=`/usr/bin/mktemp $TMPDIR/ocamlXXXXXX` || exit 1
mv "$SRCFILE" "$SRCFILE".ml
Expand Down Expand Up @@ -47,6 +45,20 @@ rm -f "$DSTFILE"
<string>html</string>
<key>outputLocation</key>
<string>newWindow</string>
<key>requiredCommands</key>
<array>
<dict>
<key>command</key>
<string>ocamlc</string>
<key>locations</key>
<array>
<string>/opt/local/bin/ocamlc</string>
<string>/usr/local/bin/ocamlc</string>
</array>
<key>variable</key>
<string>TM_OCAML</string>
</dict>
</array>
<key>scope</key>
<string>source.ocaml</string>
<key>semanticClass</key>
Expand Down

0 comments on commit 94aaa87

Please sign in to comment.