Allow to run chibi-run from anywhere

chibi-run script assumes $(PWD) is at topdir. Let's remove that
assumption so that the script can be used anywhere to launch chibi from
dev environment.
This commit is contained in:
Nguyễn Thái Ngọc Duy 2020-02-19 17:24:12 +07:00
parent 3161edbe86
commit b678abbce7

View file

@ -1 +1,3 @@
LD_LIBRARY_PATH=.: DYLD_LIBRARY_PATH=.: CHIBI_MODULE_PATH=lib ./chibi-scheme "$@"
#!/bin/sh
DIR="$(dirname "$0")/.."
LD_LIBRARY_PATH="$DIR": DYLD_LIBRARY_PATH="$DIR": CHIBI_MODULE_PATH="$DIR"/lib "$DIR"/chibi-scheme "$@"