Precompile Lua into bytecode before running it (see COMPILE)

This commit is contained in:
Jeremy Baxter 2023-01-09 12:36:48 +13:00
parent 62a21ca3c8
commit 8c4b17b9a2
4 changed files with 39 additions and 2 deletions

View file

@ -11,8 +11,10 @@ install:
luarocks install luaposix
luarocks install luasocket
luarocks install lua-cjson
printf '#!/usr/bin/env lua\n' > matrix-send
luac -o - matrix-send.lua >> matrix-send
chmod +x matrix-send
cp -f matrix-send ${DESTDIR}${PREFIX}/bin
chmod +x ${DESTDIR}${PREFIX}/bin/matrix-send
mkdir -p ${DESTDIR}${MANPREFIX}/man1
cp -f matrix-send.1 ${DESTDIR}${MANPREFIX}/man1
mkdir -p ${DESTDIR}${MANPREFIX}/man5