blob: 2f700641d6bc7ec8649bd2486d64e8553ede7455 (
plain) (
tree)
|
|
#!/usr/bin/env sh
help() {
echo "This binary is only wrapper for LuaJIT-not-ready software"
echo "You should use 'luajit -b' if you want to compile bytecode manually."
exit 0;
}
out="luac.out"
i=1;
if [[ ${#} = 0 ]]; then help; fi
for args in "${@}"; do
case $args in
-o)
shift ${i}
out="${1}"
shift 1
i=0
;;
-v)
luajit -v
exit 0;
;;
-p)
out="/dev/null"
;;
--help)
help
;;
esac
let i=${i}+1
done;
luajit -b "${@}" "${out}"
|