Idris2/bootstrap/idris2-rktboot.sh
2021-11-02 10:19:59 +00:00

18 lines
479 B
Bash
Executable File

#!/bin/sh
set -e # exit on any error
if [ "$OS" = windows ] || [ "$OS" = Windows_NT ]; then
DIR=$(dirname "$(readlink -f -- "$0" || cygpath -a -- "$0")")
PATH=$DIR/idris2_app:$PATH
elif [ "$(uname)" = Darwin ]; then
DIR=$(zsh -c 'printf %s "$0:A:h"' "$0")
else
DIR=$(dirname "$(readlink -f -- "$0")")
fi
export LD_LIBRARY_PATH="$DIR/idris2_app:$LD_LIBRARY_PATH"
export DYLD_LIBRARY_PATH="$DIR/idris2_app:$DYLD_LIBRARY_PATH"
"$DIR/idris2_app/idris2-boot" "$@"