lcmk/install.sh

21 lines
380 B
Bash
Raw Normal View History

2018-11-13 19:12:28 +00:00
#!/bin/sh
DEST=/usr/bin/
2018-11-13 19:24:22 +00:00
LUA="/bin/lua"
2018-11-13 19:12:28 +00:00
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
2018-11-13 19:24:22 +00:00
LUA="/bin/luajit"
2018-11-13 19:12:28 +00:00
fi
echo "#!/bin/sh" > lcmk
2018-11-13 19:24:22 +00:00
echo "$LUA `pwd`/lcmk.lua \$@" >> lcmk
2018-11-13 19:12:28 +00:00
chmod +x lcmk
mv lcmk "$DEST"