summaryrefslogtreecommitdiff
path: root/gui/gtk/scripts/clean.sh
blob: 1c8aa5a439993a69907019f82bb0b8b08e8ff1a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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