New generate_brands binary reads 126 brand archetype templates (wiki/economics/archetypes/brand_templates.toml), assigns halo+volume pairs to all 48 hand-authored corps, outputs wiki/economics/corporations/generated_brands.toml. Result: 10,000 brand_product rows, 26,750 brand_inputs, all 48 corps covered. Brand structural validation V-B01..V-B06 passes. Generated file is gitignored (regenerated on each `make economy-db` run). make economy-db now runs generate-brands before import_economics.py. import_economics.py merges generated_brands.toml alongside hand-authored brands.toml. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
664 B
Bash
Executable File
24 lines
664 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Generate minor brand products for the Settled Reach economy.
|
|
#
|
|
# Usage:
|
|
# tooling/generate-brands
|
|
# tooling/generate-brands --seed 42 --min-brands 10000
|
|
# tooling/generate-brands --output wiki/economics/corporations/generated_brands.toml
|
|
#
|
|
# Builds on first run if binary doesn't exist.
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
BIN="$ROOT_DIR/server/target/debug/generate_brands"
|
|
|
|
# Build if needed
|
|
if [ ! -f "$BIN" ]; then
|
|
echo "Building generate_brands..." >&2
|
|
(cd "$ROOT_DIR/server" && cargo build --bin generate_brands 2>&1 | tail -3) >&2
|
|
fi
|
|
|
|
exec "$BIN" "$@"
|