19 lines
573 B
Bash
Executable File
19 lines
573 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Regenerate the entry-file twins from CLAUDE.md.
|
|
#
|
|
# CLAUDE.md is the only hand-edited entry file. AGENTS.md and routing.md are
|
|
# byte-identical copies so that tools which ignore CLAUDE.md still find the catalog.
|
|
# Run this after every edit to CLAUDE.md; CI-safe and idempotent.
|
|
|
|
set -euo pipefail
|
|
|
|
map_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
src="${map_dir}/CLAUDE.md"
|
|
|
|
[[ -f "$src" ]] || { echo "missing $src" >&2; exit 1; }
|
|
|
|
for twin in AGENTS.md routing.md; do
|
|
cp "$src" "${map_dir}/${twin}"
|
|
echo "wrote ${map_dir}/${twin}"
|
|
done
|