#!/bin/bash
# Build soleprint for local development
#
# Usage:
#   ./build.sh              # Build gen/ with default config
#   ./build.sh amar         # Build gen/ with amar room config

set -e
cd "$(dirname "$0")/.."

CFG="${1:-}"

if [ -n "$CFG" ]; then
    echo "Building with --cfg $CFG..."
    python build.py dev --cfg "$CFG"
else
    echo "Building soleprint..."
    python build.py dev
fi

echo ""
echo "Done. Run with: ./ctrl/start.sh"
