-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathclean.sh
executable file
·41 lines (34 loc) · 897 Bytes
/
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
#!/usr/bin/env bash
source ./CONFIG.inc
clean() {
local DLL=$1.dll
for d in . ${KSP_DEV} ; do
rm -f "${d}/GameData/$DLL"
rm -f "${d}/GameData/$TARGETBINDIR/$DLL"
rm -f "${d}/GameData/$TARGETBINDIR/PluginData/$DLL"
for dd in $PD_SUB_DIRS ; do
rm -f "${d}/GameData/$TARGETBINDIR/PluginData/${dd}/$DLL"
done
for dd in $EXCEPTION_DIRS ; do
rm -f "${d}/GameData/$TARGETBINDIR/PluginData/${dd}/$DLL"
done
done
}
clean_lib() {
local DLL=$1.dll
rm -f "$LIB/$DLL"
}
VERSIONFILE=$PACKAGE.version
rm -fR "./bin"
rm -fR "./obj"
rm -f "./GameData/$TARGETDIR/$VERSIONFILE"
rm -f "./GameData/$TARGETDIR/CHANGE_LOG.md"
rm -f "./GameData/$TARGETDIR/README.md"
rm -f "./GameData/$TARGETDIR/LICENSE*"
find "./GameData/$TARGETBINDIR" -name "KSPe.Light.*.dll" -delete
for dll in 000_KSPe $DLLS $PD_DLLS KSPe.UI ; do
clean $dll
done
for dll in $LIB_DLLS ; do
clean_lib $dll
done