This repository has been archived by the owner on Jan 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.build
743 lines (700 loc) · 30.5 KB
/
default.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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
<?xml version="1.0"?>
<project name="TortoiseSVN" default="help">
<property name="signtool" value="signtool.exe" />
<!-- default configuration is release -->
<property name="configuration" value="release" />
<!-- default builds are dev builds -->
<property name="devrelease" value="-dev" unless="${property::exists('devrelease')}" />
<!-- default build for win32 platform -->
<property name="platform" value="win32" />
<!-- default: don't add a platform specific extension
to the bin folders 'release' / 'debug' -->
<property name="bindirextension" value="" />
<!-- default: we don't cross-compile -->
<property name="crosscompile" value="" />
<!-- default: we don't clean first -->
<property name="cleanup" value="" />
<!-- default: we don't build with IPv6 support -->
<property name="ipv6" value="" />
<!-- default: we build with openssl support -->
<property name="skipssl" value="" />
<!-- default: we build in a user session -->
<property name="schedule" value="no" />
<!-- the ${subsystem} to use -->
<property name="subsystem" value="/SUBSYSTEM:WINDOWS" />
<property name="subsystemcl" value="/SUBSYSTEM:CONSOLE" />
<!-- make sure the user config file exists -->
<property name="userconfigfile"
value="default.build.user" />
<property name="userconfigtemplate"
value="${userconfigfile}.tmpl" />
<if test="${not file::exists(userconfigfile)}">
<echo level="Warning">
The file ${userconfigfile} is missing. We will auto-create it
from the ${userconfigtemplate} file. Please consider adapting
it to your needs.
</echo>
<copy file="${userconfigtemplate}"
tofile="${userconfigfile}" />
</if>
<include buildfile="default.build.user" />
<!-- the signinfo.txt file has to contain one line with parameters for signtool.exe,
for example:
/t "url/to/timestamp/server" /q
-->
<loadfile file="signinfo.txt" property="signinfo" failonerror="false" if="${file::exists('signinfo.txt')}" />
<!-- ====================================================================== -->
<!-- Configuration targets -->
<!-- ====================================================================== -->
<target name="debug">
<description>
Sets the environment up to build the debug versions.
</description>
<property name="configuration" value="debug" />
</target>
<target name="release">
<description>
Sets the environment up to build an official release version,
without the '-dev' markers.
</description>
<property name="devrelease" value="" />
</target>
<target name="x64">
<description>
Compiles everything for the win64 platform.
</description>
<property name="platform" value="x64" />
<property name="bindirextension" value="64" />
<property name="subsystem" value="/SUBSYSTEM:WINDOWS" />
<property name="subsystemcl" value="/SUBSYSTEM:CONSOLE" />
</target>
<target name="cross" depends="x64">
<description>
Cross-compiles on win32 for a different platform.
</description>
<property name="crosscompile" value="yes" if="${platform == 'x64'}" />
<echo message="ignore cross-compiling (only supported for x64)" level="Warning" if="${platform != 'x64'}" />
</target>
<target name="ipv6">
<description>
builds with IPv6 support
</description>
<property name="ipv6" value="enabled" />
</target>
<target name="skipssl">
<description>
skips the building of openssl
</description>
<property name="skipssl" value="yes" />
</target>
<target name="schedule">
<description>
run this task if the whole build is done via task scheduler
</description>
<property name="schedule" value="yes" />
</target>
<!-- ====================================================================== -->
<!-- Project targets -->
<!-- ====================================================================== -->
<target name="clean" depends="VSNET">
<description>
Cleans before building the target
</description>
<property name="cleanup" value="yes" />
</target>
<target name="cleanall" depends="VSNET">
<description>
Cleans every subproject.
</description>
<property name="cleanup" value="yes" />
<nant target="clean">
<buildfiles>
<include name="doc\doc.build" />
<include name="src\TortoiseSVN.build" />
<include name="ext\build\OpenSSL.build" />
<include name="ext\build\default.build" />
<include name="Languages\LanguagePack.build" />
</buildfiles>
</nant>
</target>
<target name="docs" depends="VSNET,env,VersionInfo">
<description>
Builds the docs in all languages and all formats.
</description>
<nant target="all">
<buildfiles>
<include name="doc\doc.build" />
</buildfiles>
</nant>
<if test="${devrelease != '-dev'}">
<move todir="upload\${environment::get-variable('MajorVersion')}.${environment::get-variable('MinorVersion')}.${environment::get-variable('MicroVersion')}\Documentation">
<fileset basedir="doc\output">
<include name="*.pdf" />
</fileset>
</move>
</if>
</target>
<target name="docpot" depends="VSNET,env">
<description>
Creates the po template file for the docs.
</description>
<nant target="potfile">
<buildfiles>
<include name="doc\doc.build" />
</buildfiles>
</nant>
</target>
<target name="APIDocs" depends="env">
<description>
Builds the API docs from the comments in the sourcecode
</description>
<nant target="apidoc">
<buildfiles>
<include name="doc\doc.build" />
</buildfiles>
</nant>
</target>
<target name="VersionInfo" depends="VSNET,env">
<description>
Sets the version information as properties, env variables
and sets up the different version specific files.
</description>
<nant target="versioninfo">
<buildfiles>
<include name="src\TortoiseSVN.build" />
</buildfiles>
</nant>
</target>
<target name="Overlays" depends="VSNET,env">
<description>
Builds the TortoiseOverlays install files
</description>
<nant target="all">
<buildfiles>
<include name="src\TortoiseOverlays\TortoiseOverlays.build" />
</buildfiles>
</nant>
</target>
<target name="Subversion" depends="VSNET,env">
<description>
Builds all the libraries TortoiseSVN depends on:
Subversion, apr, OpenSSL, ...
</description>
<nant target="OpenSSL" if="${skipssl != 'yes'}">
<buildfiles>
<include name="ext\build\OpenSSL.build" />
</buildfiles>
</nant>
<nant target="build">
<buildfiles>
<include name="ext\build\default.build" />
</buildfiles>
</nant>
</target>
<target name="SubversionOnly" depends="VSNET,env">
<description>
Builds only the Subversion libraries
</description>
<nant target="build">
<buildfiles>
<include name="ext\build\subversion.build" />
</buildfiles>
</nant>
</target>
<target name="TortoiseSVN" depends="VSNET,env,editorconfig">
<description>
Builds TortoiseSVN. The libraries must have been built
before.
</description>
<nant target="TortoiseSVN">
<buildfiles>
<include name="src\TortoiseSVN.build" />
</buildfiles>
</nant>
</target>
<target name="editorconfig" depends="VSNET,env">
<description>
Builds editorconfig. The library must have been built
before TortoiseMerge.
</description>
<nant target="build">
<buildfiles>
<include name="ext\build\editorconfig.build" />
</buildfiles>
</nant>
</target>
<target name="binaries" depends="VSNET,env,Subversion,TortoiseSVN">
<description>
Builds all binaries (TortoiseSVN with all the required
libraries)
</description>
</target>
<target name="setup" depends="env,binaries,docs,LanguagePacks,changelog">
<description>
Uses WiX to create an msi installer file.
</description>
<if test="${devrelease != '-dev'}">
<call target="uploadsymbols" />
</if>
<nant target="setup">
<buildfiles>
<include name="src\TortoiseSVNSetup\setup.build" />
</buildfiles>
</nant>
</target>
<target name="LanguagePacks" depends="env,VersionInfo">
<description>
Builds all the language pack installers.
</description>
<nant target="all">
<buildfiles>
<include name="Languages\LanguagePack.build" />
</buildfiles>
</nant>
<if test="${devrelease != '-dev'}">
<move todir="upload\${environment::get-variable('MajorVersion')}.${environment::get-variable('MinorVersion')}.${environment::get-variable('MicroVersion')}\Language Packs">
<fileset basedir="bin">
<include name="LanguagePack*.msi" />
</fileset>
</move>
</if>
</target>
<target name="msi" depends="env,VersionInfo">
<description>
Builds the msi installer from already built binaries.
</description>
<if test="${devrelease != '-dev'}">
<call target="uploadsymbols" />
<call target="changelog" />
</if>
<nant target="setup">
<buildfiles>
<include name="src\TortoiseSVNSetup\setup.build" />
</buildfiles>
</nant>
<if test="${devrelease != '-dev'}">
<property name="verstring" value="${environment::get-variable('MajorVersion')}.${environment::get-variable('MinorVersion')}.${environment::get-variable('MicroVersion')}.${environment::get-variable('WCREV')}" />
<property name="svnverstring" value="${environment::get-variable('SVNMajorVersion')}.${environment::get-variable('SVNMinorVersion')}.${environment::get-variable('SVNMicroVersion')}" />
<if test="${ipv6 == ''}">
<mkdir dir="upload\${environment::get-variable('MajorVersion')}.${environment::get-variable('MinorVersion')}.${environment::get-variable('MicroVersion')}\Application" />
<property name="msifilename" value="TortoiseSVN-${verstring}${devrelease}-${platform}-svn-${svnverstring}" />
<move file="bin\${msifilename}.msi" tofile="upload\${environment::get-variable('MajorVersion')}.${environment::get-variable('MinorVersion')}.${environment::get-variable('MicroVersion')}\Application\${msifilename}.msi" />
</if>
<if test="${ipv6 != ''}">
<property name="msifilename" value="TortoiseSVN-${verstring}${devrelease}-${platform}-ipv6-svn-${svnverstring}" />
<mkdir dir="upload\${environment::get-variable('MajorVersion')}.${environment::get-variable('MinorVersion')}.${environment::get-variable('MicroVersion')}\Application\ipv6" />
<move file="bin\${msifilename}.msi" tofile="upload\${environment::get-variable('MajorVersion')}.${environment::get-variable('MinorVersion')}.${environment::get-variable('MicroVersion')}\Application\ipv6\${msifilename}.msi" />
</if>
</if>
</target>
<target name="tabspace" depends="env">
<description>
Runs the tabspace utility on our source files, including the doc xml files
</description>
<foreach item="Folder" property="foldername">
<in>
<items>
<include name="src" />
<include name="doc\source\en" />
<include name="contrib\diff-scripts" />
<include name="contrib\hook-scripts" />
</items>
</in>
<do>
<echo message="tabspace for folder ${foldername}" />
<exec program="tabspace${bindirextension}.exe">
<arg value="/path:${foldername}" />
<!-- include all our own files -->
<arg value="/ext:c;cc;cpp;cs;cxx;h;hpp;hxx;build;txt;in;wxs;wxi;def;rc2;bat;js;vbs;idl;tmpl;sh" />
<!-- exclude generated source files -->
<arg value="/exclude:resource.h;dlldata.c;IBugTraqProvider_h.h;IBugTraqProvider_i.c;IBugTraqProvider_p.c;SubWCRevCOM_h.h;SubWCRevCOM_i.c" />
</exec>
</do>
</foreach>
</target>
<target name="MakeRelease" depends="VSNET,env,clean,setup">
<description>
executes all Nant targets required for a release.
</description>
</target>
<target name="uploadsymbols" depends="env,VersionInfo">
<description>
Uploads all the debug symbols and binaries to the crash report
server https://drdump.com
</description>
<property name="verstring" value="${environment::get-variable('MajorVersion')}.${environment::get-variable('MinorVersion')}.${environment::get-variable('MicroVersion')}.${environment::get-variable('WCREV')}" />
<property name="platformfoldername" value="" if="${platform == 'win32'}" />
<property name="platformfoldername" value="64" if="${platform == 'x64'}" />
<exec program="${environment::get-variable('DEBUGTOOLS')}\srcsrv\svnindex.cmd">
<arg value="/debug" />
<arg value="/symbols=bin\${configuration}${platformfoldername}\bin\" />
<arg value="/source=.;ext\apr;ext\apr-util;ext\subversion" />
</exec>
<trycatch>
<try>
<exec program="ext\CrashServer\SymUpload.exe">
<arg value="-publish" />
<arg value="-noprogress" />
<arg value="71040f62-f78a-4953-b5b3-5c148349fed7" />
<arg value="${verstring}" />
<arg value="0" />
<arg value="bin\${configuration}${platformfoldername}\bin\*.pdb" />
</exec>
</try>
<catch>
<sleep minutes="5" />
<trycatch>
<try>
<exec program="ext\CrashServer\SymUpload.exe">
<arg value="-publish" />
<arg value="-noprogress" />
<arg value="71040f62-f78a-4953-b5b3-5c148349fed7" />
<arg value="${verstring}" />
<arg value="0" />
<arg value="bin\${configuration}${platformfoldername}\bin\*.pdb" />
</exec>
</try>
<catch>
<sleep minutes="5" />
<trycatch>
<try>
<exec program="ext\CrashServer\SymUpload.exe">
<arg value="-publish" />
<arg value="-noprogress" />
<arg value="71040f62-f78a-4953-b5b3-5c148349fed7" />
<arg value="${verstring}" />
<arg value="0" />
<arg value="bin\${configuration}${platformfoldername}\bin\*.pdb" />
</exec>
</try>
<catch>
<trycatch>
<try>
<sleep minutes="5" />
<exec program="ext\CrashServer\SymUpload.exe">
<arg value="-publish" />
<arg value="-noprogress" />
<arg value="71040f62-f78a-4953-b5b3-5c148349fed7" />
<arg value="${verstring}" />
<arg value="0" />
<arg value="bin\${configuration}${platformfoldername}\bin\*.pdb" />
</exec>
</try>
<catch>
<echo message="Symbol-upload failed!" level="Warning" />
</catch>
</trycatch>
</catch>
</trycatch>
</catch>
</trycatch>
</catch>
</trycatch>
<trycatch>
<try>
<exec program="ext\CrashServer\SymUpload.exe">
<arg value="-publish" />
<arg value="-noprogress" />
<arg value="71040f62-f78a-4953-b5b3-5c148349fed7" />
<arg value="${verstring}" />
<arg value="0" />
<arg value="bin\${configuration}${platformfoldername}\bin\*.exe" />
</exec>
</try>
<catch>
<sleep minutes="5" />
<trycatch>
<try>
<exec program="ext\CrashServer\SymUpload.exe">
<arg value="-publish" />
<arg value="-noprogress" />
<arg value="71040f62-f78a-4953-b5b3-5c148349fed7" />
<arg value="${verstring}" />
<arg value="0" />
<arg value="bin\${configuration}${platformfoldername}\bin\*.exe" />
</exec>
</try>
<catch>
<sleep minutes="5" />
<trycatch>
<try>
<exec program="ext\CrashServer\SymUpload.exe">
<arg value="-publish" />
<arg value="-noprogress" />
<arg value="71040f62-f78a-4953-b5b3-5c148349fed7" />
<arg value="${verstring}" />
<arg value="0" />
<arg value="bin\${configuration}${platformfoldername}\bin\*.exe" />
</exec>
</try>
<catch>
<sleep minutes="5" />
<trycatch>
<try>
<exec program="ext\CrashServer\SymUpload.exe">
<arg value="-publish" />
<arg value="-noprogress" />
<arg value="71040f62-f78a-4953-b5b3-5c148349fed7" />
<arg value="${verstring}" />
<arg value="0" />
<arg value="bin\${configuration}${platformfoldername}\bin\*.exe" />
</exec>
</try>
<catch>
<echo message="Symbol-upload failed!" level="Warning" />
</catch>
</trycatch>
</catch>
</trycatch>
</catch>
</trycatch>
</catch>
</trycatch>
<trycatch>
<try>
<exec program="ext\CrashServer\SymUpload.exe">
<arg value="-publish" />
<arg value="-noprogress" />
<arg value="71040f62-f78a-4953-b5b3-5c148349fed7" />
<arg value="${verstring}" />
<arg value="0" />
<arg value="bin\${configuration}${platformfoldername}\bin\*.dll" />
</exec>
</try>
<catch>
<sleep minutes="5" />
<trycatch>
<try>
<exec program="ext\CrashServer\SymUpload.exe">
<arg value="-publish" />
<arg value="-noprogress" />
<arg value="71040f62-f78a-4953-b5b3-5c148349fed7" />
<arg value="${verstring}" />
<arg value="0" />
<arg value="bin\${configuration}${platformfoldername}\bin\*.dll" />
</exec>
</try>
<catch>
<sleep minutes="5" />
<trycatch>
<try>
<exec program="ext\CrashServer\SymUpload.exe">
<arg value="-publish" />
<arg value="-noprogress" />
<arg value="71040f62-f78a-4953-b5b3-5c148349fed7" />
<arg value="${verstring}" />
<arg value="0" />
<arg value="bin\${configuration}${platformfoldername}\bin\*.dll" />
</exec>
</try>
<catch>
<sleep minutes="5" />
<trycatch>
<try>
<exec program="ext\CrashServer\SymUpload.exe">
<arg value="-publish" />
<arg value="-noprogress" />
<arg value="71040f62-f78a-4953-b5b3-5c148349fed7" />
<arg value="${verstring}" />
<arg value="0" />
<arg value="bin\${configuration}${platformfoldername}\bin\*.dll" />
</exec>
</try>
<catch>
<echo message="Symbol-upload failed!" level="Warning" />
</catch>
</trycatch>
</catch>
</trycatch>
</catch>
</trycatch>
</catch>
</trycatch>
</target>
<target name="init" depends="VSNET,env">
<description>
Initializes the build, fetches the tools if not already available
</description>
<if test="${not file::exists(userconfigfile)}">
<echo>
The file ${userconfigfile} is missing. We will auto-create it
from the ${userconfigtemplate} file. Please consider adapting
it to your needs.
</echo>
<copy file="${userconfigtemplate}" tofile="${userconfigfile}" />
</if>
<if test="${not directory::exists('Tools') or not file::exists('Tools/ver-1.8.0')}">
<get src="https://downloads.sourceforge.net/project/tortoisesvn/build%20tools/Tools-1.8.0.zip" dest="tools.zip" />
<unzip zipfile="tools.zip" />
<touch file="Tools\ver-1.8.0" />
</if>
</target>
<target name="changelog" depends="VSNET,env,VersionInfo">
<description>
Creates an md file (markdown) from the changelog file
</description>
<!-- do regex replace to get the markdown output -->
<script language="C#">
<code>
<![CDATA[
public static void ScriptMain(Project project)
{
StreamReader reader = new StreamReader( @"src\Changelog.txt" );
string content = reader.ReadToEnd();
reader.Close();
string header = @"![TortoiseSVN logo](https://svn.code.sf.net/p/tortoisesvn/code/trunk/doc/logo/tortoisesvn_logo_hor468x64.png)
Make sure to also check the [changelog of Subversion](https://svn.apache.org/repos/asf/subversion/trunk/CHANGES).
";
// remove older entries
content = Regex.Replace( content, "(Version 1\\.6\\.17.+)", "", RegexOptions.Singleline );
// add header with logo
content = header + content;
// format version titles as headings
content = Regex.Replace( content, "(Version [^\\r\\n]*)", "### $0 ###" );
// convert issues to links
content = Regex.Replace( content, "Issue #?(\\d+)", "Issue #[$1](https://sourceforge.net/p/tortoisesvn/tickets/$17)" );
// convert my name to links
content = Regex.Replace( content, "\\(Stefan\\)", "[(Stefan)](https://tortoisesvn.net/stefan_kueng.html)" );
// convert the link to the release notes to markdown links
content = Regex.Replace( content, "https://tortoisesvn.net/tsvn_(1\\.\\d+)_releasenotes.html", "[https://tortoisesvn.net/tsvn\\\\_$1\\\\_releasenotes.html](https://tortoisesvn.net/tsvn_$1_releasenotes.html)" );
// save the file as README.md so sourceforge recognizes it
StreamWriter writer = new StreamWriter( @"bin\README.md" );
writer.Write( content );
writer.Close();
}
]]>
</code>
<references>
<include name="System.dll" />
<include name="System.Xml.dll" />
</references>
<imports>
<import namespace="System.Text.RegularExpressions" />
<import namespace="System.Xml" />
<import namespace="System.Xml.XPath" />
</imports>
</script>
<if test="${devrelease != '-dev'}">
<copy file="bin\README.md" tofile="upload\${environment::get-variable('MajorVersion')}.${environment::get-variable('MinorVersion')}.${environment::get-variable('MicroVersion')}\README.md" />
</if>
</target>
<target name="chocolatey" depends="env, VersionInfo">
<loadfile file="contrib\choco\tortoisesvn.nuspec" property="nuspecfile">
<filterchain>
<replacetokens begintoken="$" endtoken="$">
<token key="MajorVersion" value="${environment::get-variable('MajorVersion')}" />
<token key="MinorVersion" value="${environment::get-variable('MinorVersion')}" />
<token key="MicroVersion" value="${environment::get-variable('Microversion')}" />
<token key="WCREV" value="${environment::get-variable('WCREV')}" />
<token key="WCDATE" value="${environment::get-variable('WCDATE')}" />
<token key="SVNMajorVersion" value="${environment::get-variable('SVNMajorVersion')}" />
<token key="SVNMinorVersion" value="${environment::get-variable('SVNMinorVersion')}" />
<token key="SVNMicroVersion" value="${environment::get-variable('SVNMicroversion')}" />
</replacetokens>
</filterchain>
</loadfile>
<echo file="contrib\choco\package\tortoisesvn.nuspec" message="${nuspecfile}" />
<loadfile file="contrib\choco\tortoisesvn-ipv6.nuspec" property="nuspecfile">
<filterchain>
<replacetokens begintoken="$" endtoken="$">
<token key="MajorVersion" value="${environment::get-variable('MajorVersion')}" />
<token key="MinorVersion" value="${environment::get-variable('MinorVersion')}" />
<token key="MicroVersion" value="${environment::get-variable('Microversion')}" />
<token key="WCREV" value="${environment::get-variable('WCREV')}" />
<token key="WCDATE" value="${environment::get-variable('WCDATE')}" />
<token key="SVNMajorVersion" value="${environment::get-variable('SVNMajorVersion')}" />
<token key="SVNMinorVersion" value="${environment::get-variable('SVNMinorVersion')}" />
<token key="SVNMicroVersion" value="${environment::get-variable('SVNMicroversion')}" />
</replacetokens>
</filterchain>
</loadfile>
<echo file="contrib\choco\package-ipv6\tortoisesvn-ipv6.nuspec" message="${nuspecfile}" />
<loadfile file="contrib\choco\chocolateyInstall.ps1" property="cinstfile">
<filterchain>
<replacetokens begintoken="$" endtoken="$">
<token key="MajorVersion" value="${environment::get-variable('MajorVersion')}" />
<token key="MinorVersion" value="${environment::get-variable('MinorVersion')}" />
<token key="MicroVersion" value="${environment::get-variable('Microversion')}" />
<token key="WCREV" value="${environment::get-variable('WCREV')}" />
<token key="WCDATE" value="${environment::get-variable('WCDATE')}" />
<token key="SVNMajorVersion" value="${environment::get-variable('SVNMajorVersion')}" />
<token key="SVNMinorVersion" value="${environment::get-variable('SVNMinorVersion')}" />
<token key="SVNMicroVersion" value="${environment::get-variable('SVNMicroversion')}" />
</replacetokens>
</filterchain>
</loadfile>
<echo file="contrib\choco\package\tools\chocolateyInstall.ps1" message="${cinstfile}" />
<loadfile file="contrib\choco\chocolateyInstall-ipv6.ps1" property="cinstfile">
<filterchain>
<replacetokens begintoken="$" endtoken="$">
<token key="MajorVersion" value="${environment::get-variable('MajorVersion')}" />
<token key="MinorVersion" value="${environment::get-variable('MinorVersion')}" />
<token key="MicroVersion" value="${environment::get-variable('Microversion')}" />
<token key="WCREV" value="${environment::get-variable('WCREV')}" />
<token key="WCDATE" value="${environment::get-variable('WCDATE')}" />
<token key="SVNMajorVersion" value="${environment::get-variable('SVNMajorVersion')}" />
<token key="SVNMinorVersion" value="${environment::get-variable('SVNMinorVersion')}" />
<token key="SVNMicroVersion" value="${environment::get-variable('SVNMicroversion')}" />
</replacetokens>
</filterchain>
</loadfile>
<echo file="contrib\choco\package-ipv6\tools\chocolateyInstall.ps1" message="${cinstfile}" />
<copy file="contrib\choco\install.ps1" tofile="contrib\choco\package\tools\install.ps1" />
<copy file="contrib\choco\install.ps1" tofile="contrib\choco\package-ipv6\tools\install.ps1" />
<echo>
now start an admin console in contrib\choco\package and contrib\choco\package-ipv6 and then run
choco pack
to upload the package, run
cpush TortoiseSVN-x.x.x.nupkg
</echo>
</target>
<!-- ====================================================================== -->
<!-- Help target -->
<!-- ====================================================================== -->
<target name="help">
<!-- note: use spaces in the help text below! Otherwise the output won't be aligned in the console. -->
<echo message="You must specify a target to tell us what you want to build!" />
<echo />
<echo message="The following targets are available:" />
<echo message="init : initializes the build tools if required" />
<echo message="binaries : builds all binaries (TortoiseSVN, Subversion, Libs)" />
<echo message="setup : creates an msi installer for TortoiseSVN" />
<echo />
<echo message="cleanall : clean every subproject" />
<echo message="docs : builds the docs in all languages and all formats" />
<echo message="APIDocs : Builds the API docs from the sourcecode comments" />
<echo message="docpot : Generates the po template file of the docs" />
<echo message="Subversion : builds the Subversion libraries, including its" />
<echo message=" dependencies" />
<echo message="TortoiseSVN : builds TortoiseSVN. You must have built the" />
<echo message=" Subversion libraries before, or this will fail" />
<echo message="LanguagePacks: creates the Languagepack installers" />
<echo message="msi : creates the msi, but doesn't build the libs first" />
<echo message="Overlays : builds the TortoiseOverlays module" />
<echo message="tabspace : cleans the code and documents up replacing tabs with spaces" />
<echo />
<echo message="The following targets can be used to tweak the builds:" />
<echo message="clean : clean those targets which are built next" />
<echo message="debug : if this target is called before other build targets," />
<echo message=" those targets are built with debug support" />
<echo message="release : call this if you want to create official releases." />
<echo message=" It removes the '-dev' string from some builds" />
<echo message="x64 : call this if you want to create native 64 bit builds." />
<echo message=" (AMD64/EM64T only -- will not work on Itanium systems.)" />
<echo message="cross : cross-compile on win32 for the given target platform." />
<echo message=" (currently only available with x64.)" />
<echo message="ipv6 : builds the packages with IPv6 support" />
<echo />
<echo message="Please specify the configuration targets BEFORE the main target." />
<echo message="Examples:" />
<echo />
<echo message="nant debug clean binaries" />
<echo message="nant release setup" />
<echo message="nant -v x64 debug binaries" />
<echo message="nant cross x64 setup" />
<echo />
<echo message="Remember to use the correct Visual Studio command prompt environment for your" />
<echo message="target [x64, cross, default x86] each build with different Visual Studio command prompts!" />
<echo />
</target>
</project>