Subversion Repositories eduke32

Rev

Rev 4330 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4330 Rev 4342
Line 92... Line 92...
92
    mkdir -p $package
92
    mkdir -p $package
93
93
94
    cd $package
94
    cd $package
95
95
96
    cp -R $top/$source/package/common/* ./
96
    cp -R $top/$source/package/common/* ./
-
 
97
    cp -R $top/$source/package/sdk/* ./
97
}
98
}
98
99
99
function package_debug ()
100
function package_debug ()
100
{
101
{
101
    cp -R $top/$source/package/debug/${*}/* ./
102
    cp -R $top/$source/package/debug/${*}/* ./
Line 108... Line 109...
108
    cp $top/$source/source/lunatic/test.lua ./lunatic/
109
    cp $top/$source/source/lunatic/test.lua ./lunatic/
109
    cp $top/$source/source/lunatic/test/test_{bitar,geom,rotspr}.lua ./lunatic/test/
110
    cp $top/$source/source/lunatic/test/test_{bitar,geom,rotspr}.lua ./lunatic/test/
110
    cp $top/$source/source/lunatic/test/{damagehplane,delmusicsfx,helixspawner,shadexfog}.lua ./lunatic/test/
111
    cp $top/$source/source/lunatic/test/{damagehplane,delmusicsfx,helixspawner,shadexfog}.lua ./lunatic/test/
111
}
112
}
112
113
113
function package_sdk ()
-
 
114
{
-
 
115
    cp -R $top/$source/package/sdk/* ./
-
 
116
}
-
 
117
-
 
118
function package_execute ()
114
function package_execute ()
119
{
115
{
120
    echo 7zr a -mx9 -t7z $output/$date-$head/${*}_$date-$head.7z *
116
    echo 7zr a -mx9 -t7z $output/$date-$head/${*}_$date-$head.7z *
121
    7zr a -mx9 -t7z $output/$date-$head/${*}_$date-$head.7z *
117
    7zr a -mx9 -t7z $output/$date-$head/${*}_$date-$head.7z *
122
118
Line 145... Line 141...
145
    "${make[@]}" RELEASE=0 $clean all
141
    "${make[@]}" RELEASE=0 $clean all
146
142
147
    # make sure all the targets were produced
143
    # make sure all the targets were produced
148
    verifytargets
144
    verifytargets
149
145
150
    # package game
146
    # package
151
    package_start
147
    package_start
152
    package_debug win32
148
    package_debug win32
153
    mv -f $top/$source/eduke32$exe "$package/eduke32.debug$exe"
149
    mv -f $top/$source/eduke32$exe "$package/eduke32.debug$exe"
154
    package_execute ${basename}_win32_debug
-
 
155
-
 
156
    # package sdk
-
 
157
    package_start
-
 
158
    package_debug win32
-
 
159
    package_sdk
-
 
160
    mv -f $top/$source/mapster32$exe "$package/mapster32.debug$exe"
150
    mv -f $top/$source/mapster32$exe "$package/mapster32.debug$exe"
161
    package_execute ${basename}-sdk_win32_debug
151
    package_execute ${basename}_win32_debug
162
152
163
153
164
    # 64-bit debug
154
    # 64-bit debug
165
155
166
    # clean the tree and build
156
    # clean the tree and build
Line 168... Line 158...
168
    "${make64[@]}" RELEASE=0 $clean all
158
    "${make64[@]}" RELEASE=0 $clean all
169
159
170
    # make sure all the targets were produced
160
    # make sure all the targets were produced
171
    verifytargets
161
    verifytargets
172
162
173
    # package game
163
    # package
174
    package_start
164
    package_start
175
    package_debug win64
165
    package_debug win64
176
    mv -f $top/$source/eduke32$exe "$package/eduke32.debug$exe"
166
    mv -f $top/$source/eduke32$exe "$package/eduke32.debug$exe"
177
    package_execute ${basename}_win64_debug
-
 
178
-
 
179
    # package sdk
-
 
180
    package_start
-
 
181
    package_debug win64
-
 
182
    package_sdk
-
 
183
    mv -f $top/$source/mapster32$exe "$package/mapster32.debug$exe"
167
    mv -f $top/$source/mapster32$exe "$package/mapster32.debug$exe"
184
    package_execute ${basename}-sdk_win64_debug
168
    package_execute ${basename}_win64_debug
185
169
186
170
187
    # 32-bit Lunatic (pre-)release
171
    # 32-bit Lunatic (pre-)release
188
172
189
    BUILD_LUNATIC="`echo $headlog | grep BUILD_LUNATIC`"
173
    BUILD_LUNATIC="`echo $headlog | grep BUILD_LUNATIC`"
Line 194... Line 178...
194
        "${make[@]}" LUNATIC=1 $clean all
178
        "${make[@]}" LUNATIC=1 $clean all
195
179
196
        # make sure all the targets were produced
180
        # make sure all the targets were produced
197
        verifytargets
181
        verifytargets
198
182
199
        # package game
183
        # package
200
        package_start
184
        package_start
201
        package_game_lunatic
185
        package_game_lunatic
202
        mv -f $top/$source/eduke32$exe "$package/leduke32_PREVIEW$exe"
186
        mv -f $top/$source/eduke32$exe "$package/leduke32_PREVIEW$exe"
203
        mv -f $top/$source/mapster32$exe "$package/lmapster32_PREVIEW$exe"
187
        mv -f $top/$source/mapster32$exe "$package/lmapster32_PREVIEW$exe"
204
        package_execute l${basename}_lunatic_PREVIEW_win32
188
        package_execute l${basename}_lunatic_PREVIEW_win32
Line 213... Line 197...
213
        "${make64[@]}" LUNATIC=1 $clean all
197
        "${make64[@]}" LUNATIC=1 $clean all
214
198
215
        # make sure all the targets were produced
199
        # make sure all the targets were produced
216
        verifytargets
200
        verifytargets
217
201
218
        # package game
202
        # package
219
        package_start
203
        package_start
220
        package_game_lunatic
204
        package_game_lunatic
221
        mv -f $top/$source/eduke32$exe "$package/leduke32_PREVIEW$exe"
205
        mv -f $top/$source/eduke32$exe "$package/leduke32_PREVIEW$exe"
222
        mv -f $top/$source/mapster32$exe "$package/lmapster32_PREVIEW$exe"
206
        mv -f $top/$source/mapster32$exe "$package/lmapster32_PREVIEW$exe"
223
        package_execute l${basename}_lunatic_PREVIEW_win64
207
        package_execute l${basename}_lunatic_PREVIEW_win64
Line 231... Line 215...
231
    "${make[@]}" $clean all
215
    "${make[@]}" $clean all
232
216
233
    # make sure all the targets were produced
217
    # make sure all the targets were produced
234
    verifytargets
218
    verifytargets
235
219
236
    # package game
220
    # package
237
    package_start
221
    package_start
238
    mv -f $top/$source/eduke32$exe "$package/eduke32$exe"
222
    mv -f $top/$source/eduke32$exe "$package/eduke32$exe"
239
    package_execute ${basename}_win32
-
 
240
-
 
241
    # package sdk
-
 
242
    package_start
-
 
243
    package_sdk
-
 
244
    mv -f $top/$source/mapster32$exe "$package/mapster32$exe"
223
    mv -f $top/$source/mapster32$exe "$package/mapster32$exe"
245
    package_execute ${basename}-sdk_win32
224
    package_execute ${basename}_win32
246
225
247
226
248
    # 64-bit release
227
    # 64-bit release
249
228
250
    # clean the tree and build
229
    # clean the tree and build
Line 252... Line 231...
252
    "${make64[@]}" $clean all
231
    "${make64[@]}" $clean all
253
232
254
    # make sure all the targets were produced
233
    # make sure all the targets were produced
255
    verifytargets
234
    verifytargets
256
235
257
    # package game
236
    # package
258
    package_start
237
    package_start
259
    mv -f $top/$source/eduke32$exe "$package/eduke32$exe"
238
    mv -f $top/$source/eduke32$exe "$package/eduke32$exe"
260
    package_execute ${basename}_win64
-
 
261
-
 
262
    # package sdk
-
 
263
    package_start
-
 
264
    package_sdk
-
 
265
    mv -f $top/$source/mapster32$exe "$package/mapster32$exe"
239
    mv -f $top/$source/mapster32$exe "$package/mapster32$exe"
266
    package_execute ${basename}-sdk_win64
240
    package_execute ${basename}_win64
267
241
268
242
269
    # clean up
243
    # clean up
270
244
271
    # hack to restore [e]obj/keep.me
245
    # hack to restore [e]obj/keep.me