This commit is contained in:
lemon-sherbet 2018-11-13 20:12:28 +01:00
commit c7d30722bb
4 changed files with 282 additions and 0 deletions

20
install.sh Executable file
View file

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