tal

Clone repo: git clone https://git.topcheto.eu/tal.git
All branches, All tags, View raw

File contents

#!/bin/sh

ROOT=$(dirname "$0")

export FFI_ROOTS="$ROOT/deps/luajit/src;$ROOT/deps/libev/bin/Linux;$FFI_ROOTS"
export LUA_ROOTS="$ROOT/deps/luajit/src;$LUA_ROOTS"
# export LUA_PATH="$ROOT/lib/?.lua;$ROOT/lib/?/init.lua;$LUA_PATH;;"

if [ "$1" = "--gdb" ]; then
	shift 1
	exec gdb --args "$ROOT/deps/luajit/src/luajit" "$ROOT/lib/tal.lua" "$@"
else
	exec "$ROOT/deps/luajit/src/luajit" "$ROOT/lib/tal.lua" "$@"
fi