21 lines
380 B
Bash
Executable file
21 lines
380 B
Bash
Executable file
#!/bin/sh
|
|
|
|
DEST=/usr/bin/
|
|
|
|
LUA="/bin/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/luajit"
|
|
fi
|
|
|
|
echo "#!/bin/sh" > lcmk
|
|
echo "$LUA `pwd`/lcmk.lua \$@" >> lcmk
|
|
chmod +x lcmk
|
|
|
|
mv lcmk "$DEST"
|