Blame dev-build.sh

833ed7
#!/bin/bash
833ed7
833ed7
set -e
833ed7
9c0711
OPT=
9c0711
#OPT="$OPT WITH_FULL_UNICODE_FONT=1"
9c0711
b53a5c
if [ -z "$1" ]; then
b53a5c
    echo "usage:"
b53a5c
    echo "  ./dev-build.sh <install-prefix-path> [clean]"</install-prefix-path>
b53a5c
fi
b53a5c
b53a5c
d4e89f
if [ "$2" == "clean" ]; then
b53a5c
	scons PREFIX="$1" DEBUG=1 $OPT -c
b53a5c
	scons PREFIX="$1-release" $OPT BUILD_DIR=build-release -c
d4e89f
	cd demo
b53a5c
	PKG_CONFIG_PATH="$1-release/lib/pkgconfig" scons -c
d4e89f
else
b53a5c
	scons PREFIX="$1" DEBUG=1 $OPT install
b53a5c
	scons PREFIX="$1-release" $OPT BUILD_DIR=build-release install
d4e89f
	cd demo
b53a5c
	PKG_CONFIG_PATH="$1-release/lib/pkgconfig" scons
d4e89f
fi