Adds server/src/bin/generate_corporations and tooling/generate-corporations wrapper. Generates ~5,000 Tier-3 corp instances from Tier-1/2 template archetypes with seeded name generation (FNV-1a + corridor-weighted PRNG). Writes wiki markdown stubs for each generated corporation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
667 B
Bash
Executable File
24 lines
667 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Generate Tier-3 corporations for the Settled Reach economy.
|
|
#
|
|
# Usage:
|
|
# tooling/generate-corporations
|
|
# tooling/generate-corporations --seed 42 --min-corps 5000
|
|
# tooling/generate-corporations --output path/to/output.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_corporations"
|
|
|
|
# Build if needed
|
|
if [ ! -f "$BIN" ]; then
|
|
echo "Building generate_corporations..." >&2
|
|
(cd "$ROOT_DIR/server" && cargo build --bin generate_corporations 2>&1 | tail -3) >&2
|
|
fi
|
|
|
|
exec "$BIN" "$@"
|