#!/bin/sh -ex luaver=$(ls lua-*.tar.gz | grep -Eo "lua-.\\..") mkdir "$luaver" tar -xvzf lua-*.tar.gz --directory="$luaver" --strip-components=1 cd "$luaver" make mingw "CFLAGS= -Wall -Wextra -std=c99 -pedantic $1 $2" cd "/root/" cp "$luaver/src/*.exe" . cp "$luaver/src/*.dll" .