Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions scripts/convert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -456,16 +456,6 @@ run_conversions() {
echo "$count"
}

write_single_file_outputs() {
# Aider
mkdir -p "$OUT_DIR/aider"
cp "$AIDER_TMP" "$OUT_DIR/aider/CONVENTIONS.md"

# Windsurf
mkdir -p "$OUT_DIR/windsurf"
cp "$WINDSURF_TMP" "$OUT_DIR/windsurf/.windsurfrules"
}

# --- Entry point ---

main() {
Expand Down Expand Up @@ -524,9 +514,14 @@ HEREDOC
done

# Write single-file outputs after accumulation
if [[ "$tool" == "all" || "$tool" == "aider" || "$tool" == "windsurf" ]]; then
write_single_file_outputs
if [[ "$tool" == "all" || "$tool" == "aider" ]]; then
mkdir -p "$OUT_DIR/aider"
cp "$AIDER_TMP" "$OUT_DIR/aider/CONVENTIONS.md"
info "Wrote integrations/aider/CONVENTIONS.md"
fi
if [[ "$tool" == "all" || "$tool" == "windsurf" ]]; then
mkdir -p "$OUT_DIR/windsurf"
cp "$WINDSURF_TMP" "$OUT_DIR/windsurf/.windsurfrules"
info "Wrote integrations/windsurf/.windsurfrules"
fi

Expand Down