mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-25 04:33:45 +03:00
4f0c262ddc
and probably for other *BSD operating systems with minor tweaks
16 lines
342 B
Bash
Executable File
Vendored
16 lines
342 B
Bash
Executable File
Vendored
#!/bin/sh
|
|
|
|
case `uname -s` in
|
|
OpenBSD|FreeBSD|NetBSD)
|
|
DIR="`grealpath $0`"
|
|
;;
|
|
|
|
*)
|
|
DIR="`realpath $0`"
|
|
;;
|
|
esac
|
|
|
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:`dirname "$DIR"`/"idris2_app""
|
|
export PATH="`dirname "$DIR"`/"idris2_app":$PATH"
|
|
${SCHEME} --script "`dirname $DIR`"/"idris2_app/idris2-boot.so" "$@"
|