File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ source ./CONFIG.inc
4+
5+ clean () {
6+ local DLL=$1 .dll
7+
8+ rm -f " ./bin/Release/$DLL "
9+ rm -f " ./bin/Debug/$DLL "
10+ rm -f " ./GameData/$TARGETBINDIR /$DLL "
11+ rm -f " $LIB /$DLL "
12+ rm -f " ${KSP_DEV} /GameData/$TARGETBINDIR /$DLL "
13+ }
14+
15+ VERSIONFILE=$PACKAGE .version
16+
17+ rm -f " ./GameData/$TARGETDIR /$VERSIONFILE "
18+ rm -f " ./GameData/$TARGETDIR /CHANGE_LOG.md"
19+ rm -f " ./GameData/$TARGETDIR /README.md"
20+ rm -f " ./GameData/$TARGETDIR /*.LICENSE"
21+ for dll in ModuleManager; do
22+ clean $dll
23+ done
Original file line number Diff line number Diff line change @@ -10,25 +10,25 @@ check() {
1010}
1111
1212deploy_dev () {
13- local DLL=$1
13+ local DLL=$1 .dll
1414
15- if [ -f " ./bin/Release/$DLL .dll " ] ; then
16- cp " ./bin/Release/$DLL .dll " " $LIB "
15+ if [ -f " ./bin/Release/$DLL " ] ; then
16+ cp " ./bin/Release/$DLL " " $LIB "
1717 fi
1818}
1919
2020deploy () {
21- local DLL=$1
21+ local DLL=$1 .dll
2222
23- if [ -f " ./bin/Release/$DLL .dll " ] ; then
24- cp " ./bin/Release/$DLL .dll " " ./GameData/$TARGETBINDIR /"
23+ if [ -f " ./bin/Release/$DLL " ] ; then
24+ cp " ./bin/Release/$DLL " " ./GameData/$TARGETBINDIR /"
2525 if [ -d " ${KSP_DEV} /GameData/$TARGETBINDIR /" ] ; then
26- cp " ./bin/Release/$DLL .dll " " ${KSP_DEV/ } GameData/$TARGETBINDIR /"
26+ cp " ./bin/Release/$DLL " " ${KSP_DEV/ } GameData/$TARGETBINDIR /"
2727 fi
2828 fi
2929 if [ -f " ./bin/Debug/$DLL .dll" ] ; then
3030 if [ -d " ${KSP_DEV} /GameData/$TARGETBINDIR /" ] ; then
31- cp " ./bin/Debug/$DLL .dll " " ${KSP_DEV} GameData/$TARGETBINDIR /"
31+ cp " ./bin/Debug/$DLL " " ${KSP_DEV} GameData/$TARGETBINDIR /"
3232 fi
3333 fi
3434}
You can’t perform that action at this time.
0 commit comments