#!/bin/bash
set -e
if [ "$2" == "clean" ]; then
scons PREFIX=$1 DEBUG=1 -c
scons PREFIX=$1-release BUILD_DIR=build-release -c
cd demo
scons -c
else
scons PREFIX=$1 DEBUG=1 install
scons PREFIX=$1-release BUILD_DIR=build-release install
cd demo
scons
fi