#!/bin/sh # the real build is build.c. this makes sure there is a build program and runs it with what you gave it, # so ./build.sh does the same as ./build. the compiler it is made with is the one it builds the engine with set -eu cd "$(dirname "$0")" cc=${CC:-cc} if [ ! -x build ]; then echo "build.sh: making the build program with $cc" $cc -DKON_CC="\"$cc\"" -o build build.c fi exec ./build "$@"