summaryrefslogtreecommitdiff
path: root/Binaries
diff options
context:
space:
mode:
authorGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-08-13 09:44:10 -0700
committerGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-08-13 09:44:10 -0700
commit9f2ef5e9fc8bf13ba51180e608501eded3dbdbea (patch)
treec92ed97f13888c1539b4580f9ef2c8ff8307ba1c /Binaries
parent3c6bbc3ee8a0452bcca193217957e6ea5e6e23f4 (diff)
Add a wrapper script around the Dafny binary (for mono).
Diffstat (limited to 'Binaries')
-rwxr-xr-xBinaries/dafny16
1 files changed, 16 insertions, 0 deletions
diff --git a/Binaries/dafny b/Binaries/dafny
new file mode 100755
index 00000000..b8571bec
--- /dev/null
+++ b/Binaries/dafny
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+
+MONO=$(which mono)
+DAFNY=$(dirname "${BASH_SOURCE[0]}")/Dafny.exe
+
+if [[ ! -x "$MONO" ]]; then
+ echo "Error: Dafny requires Mono to run on non-Windows systems."
+ exit 1
+fi
+
+if [[ ! -x "$DAFNY" ]]; then
+ echo "Error: Dafny.exe not found at $DAFNY."
+ exit 1
+fi
+
+"$MONO" "$DAFNY"