- veins → shunts rename - add cfg/standalone/ and cfg/<room>/ structure - remove old data/*.json (moved to cfg/<room>/data/) - update build.py and ctrl scripts
27 lines
589 B
Bash
Executable File
27 lines
589 B
Bash
Executable File
#!/bin/bash
|
|
# Build soleprint for local development
|
|
#
|
|
# Usage:
|
|
# ./build.sh # Build gen/standalone/
|
|
# ./build.sh amar # Build gen/amar/
|
|
# ./build.sh --all # Build all targets
|
|
|
|
set -e
|
|
cd "$(dirname "$0")/.."
|
|
|
|
TARGET="${1:-}"
|
|
|
|
if [ "$TARGET" = "--all" ]; then
|
|
echo "Building all targets..."
|
|
python build.py dev --all
|
|
elif [ -n "$TARGET" ]; then
|
|
echo "Building gen/$TARGET/..."
|
|
python build.py dev --cfg "$TARGET"
|
|
else
|
|
echo "Building gen/standalone/..."
|
|
python build.py dev
|
|
fi
|
|
|
|
echo ""
|
|
echo "Done. Run with: ./ctrl/start.sh [target]"
|