#!/usr/bin/env bash # Clean script for Lumacs - removes build artifacts and temporary files echo "Cleaning Lumacs build artifacts..." # Remove build directory if [ -d "build" ]; then echo "Removing build directory..." rm -rf build fi # Remove debug logs if ls *.log 1> /dev/null 2>&1; then echo "Removing debug logs..." rm -f *.log fi # Remove temporary files if [ -d "temporary" ]; then echo "Removing temporary directory..." rm -rf temporary fi # Remove backup files find . -name "*.bak" -o -name "*.backup" -o -name "*.orig" -o -name "*~" | xargs rm -f 2>/dev/null || true echo "✓ Clean complete!"