]> Dogcows Code - chaz/yoink/blob - configure
fixed documentation about where to find licenses
[chaz/yoink] / configure
1 #!/bin/sh
2
3 #
4 # Yoink
5 # Execute this file to configure the build system.
6 #
7
8 die () {
9 while read line; do echo $line; done && exit ${1:-127}
10 }
11
12 [ -f build/config.lua ] || die 1 <<"END"
13 You must first `cd' to the project directory root where the Makefile is.
14 There is no support for out-of-source-tree builds.
15 END
16
17 LUA=${LUA:-lua}
18 "$LUA" -v >/dev/null 2>&1 || die 2 <<END
19 Can't find a Lua interpreter in your PATH. Make sure Lua is installed, or
20 set the LUA variable in the environment to the path of lua.
21 END
22
23 unset MAKEFLAGS
24 echo "$@" | grep -w -e --interactive >/dev/null && \
25 ! (cd build && ${MAKE:-make} dialog) && die 3 <<END
26 The dialog module cannot be built and so the configure script cannot be
27 used interactively. Run the configure script non-interactively.
28 END
29
30 export PATH="./build:$PATH"
31 exec "$LUA" build/config.lua "$@" -L./build
32
This page took 0.042665 seconds and 5 git commands to generate.