adg-web: allow custom canvas size
[adg-lua.git] / autogen.sh
blobea826de2d8362e076c7609b0779cc5cbbce59325
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
4 step() {
5 local message="$1"
6 local command="$2"
8 printf "$message... "
10 if eval $command >/dev/null 2>&1; then
11 printf "\033[32mok\033[0m\n"
12 else
13 local result=$?
14 printf "\033[31mfailed\033[0m\n ** \"$command\" returned $result\n"
15 exit $result
20 dir=`dirname $0`
21 test -z "$dir" && dir=.
23 step "Checking for top-level adg-lua directory" \
24 "test -f '$dir/adg-demo.lua.in'"
26 step "Creating dummy ChangeLog, if needed" \
27 "test -f '$dir/ChangeLog' || touch '$dir/ChangeLog'"
29 step "Regenerating autotools files" \
30 "autoreconf -is -Wall '$dir'"
33 printf "Now run \033[1m$dir/configure\033[0m to customize your building\n"