-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathclean-ck3.sh
executable file
·33 lines (29 loc) · 1.17 KB
/
clean-ck3.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
#!/bin/sh
cd ck3 || exit
# Remove unneeded folders
rm -r game/gfx/particles
rm -r game/content_source
rm -r binaries
rm -r launcher
# Remove unneeded files
rm game/map_data/adjacencies.csv
rm game/map_data/default.map
rm game/map_data/heightmap.heightmap
rm game/map_data/heightmap.png
rm game/map_data/indirection_heightmap.png
rm game/map_data/nodes.dat
rm game/map_data/packed_heightmap.png
rm game/map_data/provinces.png
# Zero out files
find . -type f -wholename "*/gfx/*.png" -exec truncate -s0 {} +
find . -type f -wholename "*/gfx/*.dds" -exec truncate -s0 {} +
find . -type f -wholename "*/gfx/*.bk2" -exec truncate -s0 {} +
find . -type f -wholename "*/gfx/*.tga" -exec truncate -s0 {} +
find . -type f -wholename "*/gfx/*.bmp" -exec truncate -s0 {} +
find . -type f -wholename "*/gfx/*.mesh" -exec truncate -s0 {} +
find . -type f -wholename "*/fonts/*.ttf" -exec truncate -s0 {} +
find . -type f -wholename "*/fonts/*.otf" -exec truncate -s0 {} +
find . -type f -wholename "*/fonts/*.md" -exec truncate -s0 {} +
find . -type f -wholename "*.bank" -exec truncate -s0 {} +
find . -type f -wholename "*.flac" -exec truncate -s0 {} +
find . -type f -wholename "*.mp3" -exec truncate -s0 {} +