18 lines
393 B
Bash
Executable File
18 lines
393 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Merge all RULES markdown files into one
|
|
|
|
output_file="CLAUDE.md"
|
|
|
|
# Remove existing output file if it exists
|
|
rm -f "$output_file"
|
|
|
|
# Loop through all .md files in RULES directory in sorted order
|
|
for file in RULES/*.md; do
|
|
if [ -f "$file" ]; then
|
|
cat "$file" >> "$output_file"
|
|
echo -e "\n\n---\n" >> "$output_file"
|
|
fi
|
|
done
|
|
|
|
echo "Merged all rules into $output_file" |