diff options
Diffstat (limited to 'gui/gtk/scripts/clean.sh')
| -rwxr-xr-x | gui/gtk/scripts/clean.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gui/gtk/scripts/clean.sh b/gui/gtk/scripts/clean.sh new file mode 100755 index 0000000..1c8aa5a --- /dev/null +++ b/gui/gtk/scripts/clean.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +# Butchunker GTK Clean Script + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +PROJECT_ROOT="$(dirname "$SCRIPT_DIR")" +BUILD_DIR="$PROJECT_ROOT/build" + +# Remove build directory if it exists +if [ -d "$BUILD_DIR" ]; then + rm -rf "$BUILD_DIR" +fi + +# Also clean any other generated files + +# Remove CMake cache files if they exist outside build directory +if [ -f "$PROJECT_ROOT/CMakeCache.txt" ]; then + rm -f "$PROJECT_ROOT/CMakeCache.txt" +fi + +if [ -d "$PROJECT_ROOT/CMakeFiles" ]; then + rm -rf "$PROJECT_ROOT/CMakeFiles" +fi + +if [ -f "$PROJECT_ROOT/cmake_install.cmake" ]; then + rm -f "$PROJECT_ROOT/cmake_install.cmake" +fi + +if [ -f "$PROJECT_ROOT/Makefile" ]; then + rm -f "$PROJECT_ROOT/Makefile" +fi |
