chore: update project structure, naming, and add reporting infrastructure
- Update all 7 phase docs with source/target location references (golang/ for Go source, dotnet/ for .NET version) - Rename NATS.Server to ZB.MOM.NatsNet.Server in phase 4-7 docs - Update solution layout to dotnet/src/ and dotnet/tests/ structure - Create CLAUDE.md with project summary and phase links - Update .gitignore: track porting.db, add standard .NET patterns - Add golang/nats-server as git submodule - Add reports/generate-report.sh and pre-commit hook - Add documentation_rules.md to version control
This commit is contained in:
34
reports/generate-report.sh
Executable file
34
reports/generate-report.sh
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
# Generate porting tracker reports
|
||||
# Writes reports/current.md (always) and reports/report_{commit_id}.md (snapshot)
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||
|
||||
DB_PATH="$REPO_ROOT/porting.db"
|
||||
TRACKER_PROJECT="$REPO_ROOT/tools/NatsNet.PortTracker"
|
||||
CURRENT_REPORT="$SCRIPT_DIR/current.md"
|
||||
|
||||
# Check if DB exists
|
||||
if [ ! -f "$DB_PATH" ]; then
|
||||
echo "Warning: $DB_PATH not found, skipping report generation"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Generate current.md
|
||||
dotnet run --project "$TRACKER_PROJECT" -- report export \
|
||||
--format md \
|
||||
--output "$CURRENT_REPORT" \
|
||||
--db "$DB_PATH" 2>/dev/null || {
|
||||
echo "Warning: report generation failed, skipping"
|
||||
exit 0
|
||||
}
|
||||
|
||||
# Generate commit-specific snapshot
|
||||
COMMIT_ID=$(git -C "$REPO_ROOT" rev-parse --short HEAD 2>/dev/null || echo "unknown")
|
||||
COMMIT_REPORT="$SCRIPT_DIR/report_${COMMIT_ID}.md"
|
||||
cp "$CURRENT_REPORT" "$COMMIT_REPORT"
|
||||
|
||||
echo "Reports generated: current.md, report_${COMMIT_ID}.md"
|
||||
Reference in New Issue
Block a user