#!/bin/sh # # Yoink # Execute this file to configure the build system. # die () { while read line; do echo $line; done && exit ${1:-127} } [ -f build/config.lua ] || die 1 <<"END" You must first `cd' to the project directory root where the Makefile is. There is no support for out-of-source-tree builds. END LUA=${LUA:-lua} "$LUA" -v >/dev/null 2>&1 || die 2 </dev/null && \ ! (cd build && ${MAKE:-make} dialog) && die 3 <