2021-04-06 17:42:04 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e # exit on any error
|
|
|
|
|
2021-07-21 16:35:21 +03:00
|
|
|
if [ "$OS" = windows ] || [ "$OS" = Windows_NT ]; then
|
|
|
|
DIR=$(dirname "$(readlink -f -- "$0" || cygpath -a -- "$0")")
|
|
|
|
PATH=$DIR/idris2_app:$PATH
|
|
|
|
elif [ "$(uname)" = Darwin ]; then
|
2021-05-15 17:40:15 +03:00
|
|
|
DIR=$(zsh -c 'printf %s "$0:A:h"' "$0")
|
|
|
|
else
|
|
|
|
DIR=$(dirname "$(readlink -f -- "$0")")
|
2021-04-06 17:42:04 +03:00
|
|
|
fi
|
|
|
|
|
2021-07-21 16:35:21 +03:00
|
|
|
export LD_LIBRARY_PATH="$DIR/idris2_app:$LD_LIBRARY_PATH"
|
2021-04-06 17:42:04 +03:00
|
|
|
|
|
|
|
"$DIR/idris2_app/idris2-boot" "$@"
|