35 lines
937 B
Bash
Executable File
35 lines
937 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# strip_content.sh
|
|
# Removes proprietary content files from the Git repository (and disk).
|
|
# Use this to clean the "Core Engine" repo.
|
|
# Use ./load_content.sh to restore them from the external content repo.
|
|
|
|
echo "🧹 Stripping proprietary content from repository..."
|
|
|
|
FILES_TO_REMOVE=(
|
|
"CrumbTech.md"
|
|
"ARCHITECTURE_ROLES_GROUPS.md"
|
|
"QDRANT_ACCESS.md"
|
|
"DIARY_RAG_README.md"
|
|
"HOME_TEMPLATE_PLAN.md"
|
|
)
|
|
|
|
# 1. Remove individual files
|
|
for file in "${FILES_TO_REMOVE[@]}"; do
|
|
if [ -f "$file" ]; then
|
|
echo "Removing $file..."
|
|
git rm "$file" 2>/dev/null || rm "$file"
|
|
fi
|
|
done
|
|
|
|
# 2. Remove docs/ directory (except special files if any)
|
|
if [ -d "docs" ]; then
|
|
echo "Removing docs/ directory..."
|
|
git rm -r docs 2>/dev/null || rm -rf docs
|
|
fi
|
|
|
|
echo "✅ Content stripped."
|
|
echo "👉 Now run: git commit -m 'chore: decouple content'"
|
|
echo "💡 To restore content: ./load_content.sh"
|