-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathclean.sh
More file actions
executable file
·35 lines (27 loc) · 931 Bytes
/
Copy pathclean.sh
File metadata and controls
executable file
·35 lines (27 loc) · 931 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
#!/bin/bash
# Clean script for GDScript Compiler
# Removes all generated files and build artifacts
echo "Cleaning GDScript Compiler project..."
# Remove compiled binaries
find . -type f -name "*.o" -delete
find . -type f -name "*.s" -delete
find . -type f -name "*.exe" -delete
find . -type f -name "*.app" -delete
find . -type f -name "*_arm" -delete
find . -type f -name "*_linux" -delete
find . -type f -name "*_linux_*" -delete
find . -type f -name "*_windows" -delete
find . -type f -name "*_macos*" -delete
# Remove test files (except examples)
find . -type f -name "*.gd" -not -path "./examples/*" -delete
# Remove debug and utility binaries
find . -type f -name "dump_tokens" -delete
find . -type f -name "check_token_types" -delete
find . -type f -name "simple_dump_tokens" -delete
# Remove build directories
rm -rf obj/
rm -rf bin/
rm -rf *.dSYM/
# Remove test output
rm -rf test_output/
echo "Cleaning complete!"