Blob Blame Raw
#!/bin/bash

set -e

OPT=
#OPT="$OPT WITH_FULL_UNICODE_FONT=1"

if [ "$2" == "clean" ]; then
	scons PREFIX=$1 DEBUG=1 $OPT -c
	scons PREFIX=$1-release $OPT BUILD_DIR=build-release -c
	cd demo
	scons -c
else
	scons PREFIX=$1 DEBUG=1 $OPT install
	scons PREFIX=$1-release $OPT BUILD_DIR=build-release install
	cd demo
	scons
fi