mirror of
https://github.com/rsyslog/rsyslog.git
synced 2026-08-24 19:24:14 +02:00
Modernize the rsyslog contribution workflow for AI agents to improve policy compliance and reduce instruction verbosity. Impact: Repository-wide reduction in AGENTS.md bloat. Before: Fragmented and redundant procedural instructions in AGENTS.md. After: Modular skills in .agent/skills/ with streamlined subtree guides. This change encapsulates build, test, documentation, module authoring, and commit policies into reusable skills. It introduces: - A specialized AI memory lifecycle auditor. - A boilerplate snippets library. - The 'rsyslog_doc_dist' skill for doc/Makefile.am synchronization. - YAML frontmatter 'triggers' for automatic skill activation. The workflow is further optimized to skip redundant builds after stylistc code formatting, ensuring faster iteration for AI-led development. AI-Agent: Antigravity 2026-01
29 lines
876 B
Bash
Executable File
29 lines
876 B
Bash
Executable File
#!/bin/bash
|
|
# .agent/skills/rsyslog_build/scripts/setup.sh
|
|
# Standard environment setup for rsyslog agents.
|
|
|
|
set -e
|
|
|
|
REPO_ROOT=$(git rev-parse --show-toplevel)
|
|
|
|
echo ">>> Setting up rsyslog development environment..."
|
|
|
|
# 1. Run the official setup script if it exists
|
|
if [ -f "$REPO_ROOT/devtools/codex-setup.sh" ]; then
|
|
echo ">>> Running devtools/codex-setup.sh..."
|
|
bash "$REPO_ROOT/devtools/codex-setup.sh"
|
|
else
|
|
echo ">>> WARNING: devtools/codex-setup.sh not found. Ensure dependencies are installed manually."
|
|
echo ">>> Required: autoconf, automake, libtool, bison, flex, libcurl-dev, libfastjson-dev, etc."
|
|
fi
|
|
|
|
# 2. Check for critical tools
|
|
for tool in autoconf automake libtool bison flex; do
|
|
if ! command -v $tool >/dev/null 2>&1; then
|
|
echo ">>> ERROR: Required tool '$tool' is missing."
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
echo ">>> Setup complete."
|