-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathclean.sh
More file actions
executable file
·28 lines (23 loc) · 638 Bytes
/
clean.sh
File metadata and controls
executable file
·28 lines (23 loc) · 638 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
#!/usr/bin/env bash
# see http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -euo pipefail
IFS=$'\n\t'
source ./CONFIG.inc
clean() {
local DLL=$1.dll
find ./bin -name "$DLL" -delete
find ./obj -name "$DLL" -delete
rm -f "./GameData/$DLL"
rm -f "./GameData/$TARGETBINDIR/$DLL"
rm -f "$LIB/$DLL"
rm -f "${KSP_DEV}/GameData/$DLL"
rm -f "${KSP_DEV}/GameData/$TARGETBINDIR/$DLL"
}
VERSIONFILE=$PACKAGE.version
rm -f "./GameData/$TARGETDIR/$VERSIONFILE"
rm -f "./GameData/$TARGETDIR/CHANGE_LOG.md"
rm -f "./GameData/$TARGETDIR/README.md"
rm -f "./GameData/$TARGETDIR/LICENSE*"
for dll in $DLLS ; do
clean $dll
done