summaryrefslogtreecommitdiff
path: root/gui/gtk/scripts/clean.sh
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-03-09 22:45:24 +0800
committer魏曹先生 <1992414357@qq.com>2026-03-09 22:45:24 +0800
commitc9ff9a13735010a6d3937a05e8ce9f00f9fab3ac (patch)
tree77ad04e6db77aa037513e4d22866a89f9cf52403 /gui/gtk/scripts/clean.sh
parent25761b5ef0d9d385ac2a371b62913f98350d6f56 (diff)
Add GTK GUI build system for Unix platforms
Diffstat (limited to 'gui/gtk/scripts/clean.sh')
-rwxr-xr-xgui/gtk/scripts/clean.sh31
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