-
Notifications
You must be signed in to change notification settings - Fork 9
/
OrbitalScience.build
180 lines (145 loc) · 5.91 KB
/
OrbitalScience.build
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<?xml version="1.0"?>
<project name="Nehemiah KSP mods" default="all" basedir=".">
<description>Pack the files for the different KSP mods</description>
<property name="build.dir" value="build" />
<property name="OMS.dir" value="${build.dir}/OMS/" />
<property name="All.dir" value="${build.dir}/AllInOne/" />
<property name="KR.dir" value="${build.dir}/KerbalLifeScience/" />
<property name="Kemini.dir" value="${build.dir}/Kemini/" />
<property name="KEES.dir" value="${build.dir}/KEES/" />
<property name="GameData.dir" value="GameData/NehemiahInc" />
<property name="OMS.Version" value="0.6" />
<property name="All.Version" value="0.1.2" />
<property name="KLS.Version" value="0.1" />
<property name="Kemini.Version" value="0.1.2" />
<property name="KEES.Version" value="0.2" />
<property name="Common.Version" value="0.1" />
<property name="MPP.Version" value="0.1" />
<property name="CurrMod.dir" value="${build.dir}" />
<target name="clean" description="remove all generated files">
<delete dir="${build.dir}" />
</target>
<target name="all" description="pack the diferent mods" depends="clean">
<call target="zips" />
</target>
<target name="zips" description="pack the diferent mods">
<call target="copyDll" />
<call target="omsZip" />
<call target="klsZip" />
<call target="keminiZip" />
<call target="keesZip" />
<call target="allInOneZip" />
</target>
<target name="copyDll" description="copy the dll from the plugin folder to game data" >
<copy todir="${GameData.dir}/NE_Science_Common/Plugins">
<fileset basedir="Plugin/NE Science/bin/Release">
<include name="NE_Science.dll"/>
</fileset>
</copy>
</target>
<target name="copyCommon" description="copy the common files">
<mkdir dir="${CurrMod.dir}/NehemiahInc/NE_Science_Common" />
<copy todir="${CurrMod.dir}/NehemiahInc/NE_Science_Common" >
<fileset basedir="${GameData.dir}/NE_Science_Common"/>
</copy>
</target>
<target name="copyMPParts" description="copy the multi purpose parts">
<mkdir dir="${CurrMod.dir}/NehemiahInc/MultiPurposeParts" />
<copy todir="${CurrMod.dir}/NehemiahInc/MultiPurposeParts" >
<fileset basedir="${GameData.dir}/MultiPurposeParts"/>
</copy>
</target>
<target name="copyModuleManager" description="copy the ModuleManager dll">
<copy todir="${CurrMod.dir}" >
<fileset basedir="GameData">
<include name="ModuleManager*.dll"/>
</fileset>
</copy>
</target>
<target name="allInOneZip" description="All mod in one zip">
<mkdir dir="${All.dir}/NehemiahInc/" />
<property name="CurrMod.dir" value="${All.dir}" />
<call target="copyCommon"/>
<call target="copyModuleManager" />
<call target="copyMPParts" />
<call target="copyOMS" />
<call target="copyKLS" />
<call target="copyKemini" />
<call target="copyKEES" />
<zip zipfile="${build.dir}/NehemiahIncSciencePack_${All.Version}.zip" ziplevel="9">
<fileset basedir="${All.dir}" >
<include name="**/*" />
</fileset>
</zip>
</target>
<target name="omsZip" description="copy the files and folders for the oms mod">
<property name="CurrMod.dir" value="${OMS.dir}" />
<call target="copyCommon"/>
<call target="copyModuleManager" />
<call target="copyMPParts" />
<call target="copyOMS" />
<zip zipfile="${build.dir}/OrbitalMaterialScience_${OMS.Version}.zip" ziplevel="9">
<fileset basedir="${OMS.dir}" >
<include name="**/*" />
</fileset>
</zip>
</target>
<target name="copyOMS" description="copy the oms files">
<mkdir dir="${CurrMod.dir}/NehemiahInc/OMS" />
<copy todir="${CurrMod.dir}/NehemiahInc/OMS" >
<fileset basedir="${GameData.dir}/OMS"/>
</copy>
</target>
<target name="klsZip" description="copy the files and folders for the KerbalLifeScience mod">
<property name="CurrMod.dir" value="${KR.dir}" />
<call target="copyCommon"/>
<call target="copyModuleManager" />
<call target="copyMPParts" />
<call target="copyKLS" />
<zip zipfile="${build.dir}/KerbalLifeScience_${KLS.Version}.zip" ziplevel="9">
<fileset basedir="${KR.dir}">
<include name="**/*" />
</fileset>
</zip>
</target>
<target name="copyKLS" description="copy the oms files">
<mkdir dir="${CurrMod.dir}/NehemiahInc/KerbalLifeScience" />
<copy todir="${CurrMod.dir}/NehemiahInc/KerbalLifeScience" >
<fileset basedir="${GameData.dir}/KerbalLifeScience"/>
</copy>
</target>
<target name="keminiZip" description="copy the files and folders for the Kemini Research mod">
<property name="CurrMod.dir" value="${Kemini.dir}" />
<call target="copyCommon"/>
<call target="copyModuleManager" />
<call target="copyKemini" />
<zip zipfile="${build.dir}/KeminiResearch_${Kemini.Version}.zip" ziplevel="9">
<fileset basedir="${Kemini.dir}">
<include name="**/*" />
</fileset>
</zip>
</target>
<target name="copyKemini" description="copy the oms files">
<mkdir dir="${CurrMod.dir}/NehemiahInc/Kemini" />
<copy todir="${CurrMod.dir}/NehemiahInc/Kemini" >
<fileset basedir="${GameData.dir}/Kemini"/>
</copy>
</target>
<target name="keesZip" description="copy the files and folders for the KEES mod">
<property name="CurrMod.dir" value="${KEES.dir}" />
<call target="copyCommon"/>
<call target="copyModuleManager" />
<call target="copyKEES" />
<zip zipfile="${build.dir}/KEES_${KEES.Version}.zip" ziplevel="9">
<fileset basedir="${KEES.dir}">
<include name="**/*" />
</fileset>
</zip>
</target>
<target name="copyKEES" description="copy the oms files">
<mkdir dir="${CurrMod.dir}/NehemiahInc/KEES" />
<copy todir="${CurrMod.dir}/NehemiahInc/KEES" >
<fileset basedir="${GameData.dir}/KEES"/>
</copy>
</target>
</project>