mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-01 01:09:03 +03:00
d56efff0a7
Before this commit the error was: ``` bootstrap/idris2-boot: line 15: --script: command not found ```
21 lines
427 B
Bash
Executable File
Vendored
21 lines
427 B
Bash
Executable File
Vendored
#!/bin/sh
|
|
|
|
case `uname -s` in
|
|
OpenBSD|FreeBSD|NetBSD)
|
|
DIR="`grealpath $0`"
|
|
;;
|
|
|
|
*)
|
|
DIR="`realpath $0`"
|
|
;;
|
|
esac
|
|
|
|
if test -z "${SCHEME}"; then
|
|
echo "SCHEME env var is not set" >&2
|
|
exit 1
|
|
fi
|
|
|
|
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" "$@"
|