Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (63 sloc) 1.8 KB
<?xml version="1.0" encoding="UTF-8"?>
<!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>#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] &amp;&amp; . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
TO_OCAML=${TM_OCAML:=ocamlc}
TMPDIR=${TMPDIR:=/tmp}
# get a tempfile and fill it with the contents of our file
SRCFILE=`/usr/bin/mktemp $TMPDIR/ocamlXXXXXX` || exit 1
mv "$SRCFILE" "$SRCFILE".ml
DSTFILE=`/usr/bin/mktemp $TMPDIR/ocamlXXXXXX` || exit 1
cat &gt; "$SRCFILE".ml
# compile it to a new tempfile
cd "$TMPDIR"
# run it and clean up after ourselves
"$TM_BUNDLE_SUPPORT/OCamlMate/run_script.rb" "$TO_OCAML" "$SRCFILE".ml "$DSTFILE"
rm -f "$SRCFILE".*
rm -f "$DSTFILE"
</string>
<key>fallbackInput</key>
<string>document</string>
<key>input</key>
<string>selection</string>
<key>inputFormat</key>
<string>text</string>
<key>keyEquivalent</key>
<string>@r</string>
<key>name</key>
<string>Run</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>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>
<string>process.run.script.ocaml</string>
<key>uuid</key>
<string>86A99A45-C6B6-4F46-BBB5-04351FD5E3B1</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>
Something went wrong with that request. Please try again.