clean.sh 624 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. # Clean script for Lumacs - removes build artifacts and temporary files
  3. echo "Cleaning Lumacs build artifacts..."
  4. # Remove build directory
  5. if [ -d "build" ]; then
  6. echo "Removing build directory..."
  7. rm -rf build
  8. fi
  9. # Remove debug logs
  10. if ls *.log 1> /dev/null 2>&1; then
  11. echo "Removing debug logs..."
  12. rm -f *.log
  13. fi
  14. # Remove temporary files
  15. if [ -d "temporary" ]; then
  16. echo "Removing temporary directory..."
  17. rm -rf temporary
  18. fi
  19. # Remove backup files
  20. find . -name "*.bak" -o -name "*.backup" -o -name "*.orig" -o -name "*~" | xargs rm -f 2>/dev/null || true
  21. echo "✓ Clean complete!"