Files
metaverseDubai/scripts/validate_project.sh

99 lines
1.9 KiB
Bash
Raw Normal View History

#!/bin/bash
# Dubai Metaverse - Full Project Validation Script
# Validates complete project structure and documentation
set -e
echo "=========================================="
echo "Dubai Metaverse - Project Validation"
echo "=========================================="
echo ""
ERRORS=0
WARNINGS=0
# Check required files
echo "Checking required files..."
REQUIRED_FILES=(
"README.md"
"PROJECT_CHARTER.md"
"TECHNICAL_BRIEF.md"
"ART_BIBLE.md"
"PROJECT_PLAN.md"
"PIPELINE.md"
"NAMING_CONVENTIONS.md"
"UE5_SETUP.md"
"PROJECT_SETTINGS.md"
"PLUGINS.md"
"VERSION_CONTROL.md"
"MILESTONES.md"
)
for file in "${REQUIRED_FILES[@]}"; do
if [ -f "$file" ]; then
echo "$file"
else
echo "❌ Missing: $file"
((ERRORS++))
fi
done
# Check directories
echo ""
echo "Checking directory structure..."
REQUIRED_DIRS=(
"docs"
"TASKS"
"PROGRESS_REPORTS"
"scripts"
"houdini"
"data"
"TEMPLATES"
)
for dir in "${REQUIRED_DIRS[@]}"; do
if [ -d "$dir" ]; then
echo "$dir/"
else
echo "⚠ Missing: $dir/"
((WARNINGS++))
fi
done
# Check scripts
echo ""
echo "Checking scripts..."
if [ -d "scripts" ]; then
SCRIPT_COUNT=$(find scripts -type f \( -name "*.sh" -o -name "*.py" \) | wc -l)
echo "✓ Found $SCRIPT_COUNT scripts"
else
echo "⚠ Scripts directory not found"
((WARNINGS++))
fi
# Check documentation
echo ""
echo "Checking documentation..."
DOC_COUNT=$(find . -name "*.md" | wc -l)
echo "✓ Found $DOC_COUNT documentation files"
# Summary
echo ""
echo "=========================================="
echo "Validation Summary"
echo "=========================================="
echo ""
echo "Errors: $ERRORS"
echo "Warnings: $WARNINGS"
echo ""
if [ $ERRORS -eq 0 ]; then
echo "✓ Project validation passed"
exit 0
else
echo "❌ Project validation failed"
exit 1
fi