This commit is contained in:
lemon-sherbet 2018-11-13 20:24:22 +01:00
parent c7d30722bb
commit 3bb1ea3198

View file

@ -2,7 +2,7 @@
DEST=/usr/bin/
LUA="/bin/env lua"
LUA="/bin/lua"
if [ "$1" == "-h" ]; then
echo "usage:"
echo " $0 [options]"
@ -10,11 +10,11 @@ if [ "$1" == "-h" ]; then
echo " -luajit: install using luajit (needs lfs_ffi: https://github.com/spacewander/luafilesystem)"
exit
elif [ "$1" == "-luajit" ]; then
LUA="/bin/env luajit"
LUA="/bin/luajit"
fi
echo "#!/bin/sh" > lcmk
echo "$LUA `pwd`/lcmk.lua $@" >> lcmk
echo "$LUA `pwd`/lcmk.lua \$@" >> lcmk
chmod +x lcmk
mv lcmk "$DEST"