-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclean.sh
More file actions
40 lines (32 loc) · 847 Bytes
/
Copy pathclean.sh
File metadata and controls
40 lines (32 loc) · 847 Bytes
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
32
33
34
35
36
37
38
39
40
#!/bin/bash
echo "Cleaning build artifacts..."
# Remove build directory and all its contents
if [ -d "build" ]; then
rm -rf build
echo "Build directory removed."
else
echo "Build directory does not exist."
fi
# Remove any old executables in root directory (from previous builds)
if [ -f "pizza_system.exe" ]; then
rm pizza_system.exe
echo "Removed old pizza_system.exe"
fi
if [ -f "pizza_system_gui.exe" ]; then
rm pizza_system_gui.exe
echo "Removed old pizza_system_gui.exe"
fi
if [ -f "pizza_system" ]; then
rm pizza_system
echo "Removed old pizza_system"
fi
if [ -f "pizza_system_gui" ]; then
rm pizza_system_gui
echo "Removed old pizza_system_gui"
fi
# Remove old obj directory if it exists
if [ -d "obj" ]; then
rm -rf obj
echo "Removed old obj directory."
fi
echo "Clean complete!"