-
Notifications
You must be signed in to change notification settings - Fork 1
/
clean.sh
63 lines (56 loc) · 1.66 KB
/
clean.sh
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
echo Deleting Junk
echo .
echo ..
echo ...
# rm -rf ./TD2020/saved/Autosaves/
# rm -rf ./TD2020/saved/Backup/
# rm -rf ./TD2020/saved/Collections/
# rm -rf ./TD2020/saved/Logs/
# rm -rf ./TD2020/saved/StagedBuilds/
# rm -rf ./TD2020/saved/Crashes/
# rm -rf ./TD2020/saved/Cooked/
# rm -rf ./TD2020/saved/Config/CrashReportClient/
#
# rm -rf ./TD2020/Content/Developers/
# rm -rf ./TD2020/Content/Collections/
#
# rm -rf ./TD2020/build/
# rm -rf ./TD2020/intermediate/
# rm -rf ./TD2020/saved/
# rm -rf ./TD2020/binaries/
# rm -rf ./TD2020/DerivedDataCache/
# rm -rf ./TD2020/Debug/
# rm -rf ./TD2020/.vs/
# rm -rf ./TD2020/.git/
#
# rm -rf ./TD2020/Content/Scripts/alpha-zero-general/pretrained_models/*
# rm -rf ./TD2020/Content/Scripts/alpha-zero-general/temp/*
# rm -rf ./TD2020/Content/Scripts/_Files/models/*
# rm -rf ./TD2020/Content/Scripts/temp/*
# rm -rf ./TD2020/Content/Scripts/.mypy_cache/
# rm -rf ./TD2020/Content/Scripts/logs/*
#
#
# find ./TD2020/Content/Scripts/ -name "*.uasset" -exec rm {} \;
# find . -name "*.log" -exec rm {} \;
# find . -name "*.sln" -exec rm {} \;
# find . -name "*nul" -exec rm {} \;
# find . -name "*.VC.db" -exec rm {} \;
# find . -name "*.opensdf" -exec rm {} \;
# find . -name "*.opendb" -exec rm {} \;
# find . -name "*.suo" -exec rm {} \;
# find . -name "*.sdf" -exec rm {} \;
# find . -name "*.xcodeproj" -exec rm {} \;
# find . -name "*.xcworkspace" -exec rm {} \;
git clean -xfd
git submodule foreach --recursive git clean -xfd
git reset --hard
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive
echo ...
echo ..
echo .
echo Project at minimum size
echo Goodbye
sleep 1