summaryrefslogtreecommitdiff
path: root/Binaries/dafny
blob: 889ebc81e4ca0753c98605880ca08794d5f0e613 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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" "$@"