forked from bcgit/bc-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build1-1
598 lines (546 loc) · 33.4 KB
/
build1-1
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
#!/bin/sh -
#
# build script for 1.1
#
# If it's given a buildname it creates a subdirectory and places a build in it,
# otherwise it just creates the docs and class files.
#
JDK11PATH=/opt/jdk1.1.8 # JDK 1.1 location
base=$1
version=`echo $base | sed -e "s/\([0-9]\)\([0-9a-z]*\)/\1.\2/"`
WINDOWTITLE="Bouncy Castle Cryptography $version API Specification"
HEADER="<b>Bouncy Castle Cryptography $version</b>"
DOCTITLE="Bouncy Castle $version API Specification"
artifacts=build/artifacts/jdk1.1
mkdir -p $artifacts
if test "$base" != "" -a ! -d $artifacts/lcrypto-jdk11-$base
then
echo "making lightweight release"
mkdir $artifacts/lcrypto-jdk11-$base
mkdir $artifacts/lcrypto-jdk11-$base/src
tar cf - index.html LICENSE.html CONTRIBUTORS.html docs | (cd $artifacts/lcrypto-jdk11-$base && tar xf -)
(cd core/src/main/java && tar cf - org/bouncycastle/LICENSE.java \
org/bouncycastle/math org/bouncycastle/crypto org/bouncycastle/util org/bouncycastle/asn1 org/bouncycastle/pqc/math org/bouncycastle/pqc/crypto org/bouncycastle/pqc/asn1 ) \
| (cd $artifacts/lcrypto-jdk11-$base/src && tar xf -)
(cd core/src/main/javadoc && tar cf - \
org/bouncycastle/math org/bouncycastle/crypto org/bouncycastle/util org/bouncycastle/asn1 ) \
| (cd $artifacts/lcrypto-jdk11-$base/src && tar xf -)
(cd core/src/main/jdk1.4 && tar cf - org/bouncycastle/util) \
| (cd $artifacts/lcrypto-jdk11-$base/src && tar xf -)
(cd core/src/main/jdk1.3 && tar cf - org/bouncycastle/asn1) \
| (cd $artifacts/lcrypto-jdk11-$base/src && tar xf -)
(cd core/src/main/jdk1.1 && tar cf - *) \
| (cd $artifacts/lcrypto-jdk11-$base/src && tar xf -)
(cd core/src/test/java && tar cf - org/bouncycastle/crypto org/bouncycastle/util org/bouncycastle/asn1) \
| (cd $artifacts/lcrypto-jdk11-$base/src && tar xf -)
(cd core/src/test/jdk1.3 && tar cf - org) \
| (cd $artifacts/lcrypto-jdk11-$base/src && tar xf -)
(cd core/src/test/jdk1.2 && tar cf - org) \
| (cd $artifacts/lcrypto-jdk11-$base/src && tar xf -)
(cd core/src/test/jdk1.1 && tar cf - org) \
| (cd $artifacts/lcrypto-jdk11-$base/src && tar xf -)
find $artifacts/lcrypto-jdk11-$base -name "*.java" -exec scripts/trim.sh \{\} \;
(
cd $artifacts/lcrypto-jdk11-$base;
mkdir classes; mkdir javadoc;
rm -rf src/org/bouncycastle/jce
rm -rf src/org/bouncycastle/ocsp
rm -rf src/org/bouncycastle/openpgp
rm -rf src/org/bouncycastle/i18n
rm -rf src/org/bouncycastle/math/ntru
rm -rf src/org/bouncycastle/crypto/test/ntru
rm -rf src/org/bouncycastle/crypto/*/NTRU*
rm -rf src/org/bouncycastle/crypto/*/test
rm -rf src/org/bouncycastle/crypto/*/IndexGenerator*
rm -rf src/org/bouncycastle/util/utiltest
find src -name AllTests.java -exec rm {} \;
rm src/org/bouncycastle/asn1/test/GetInstanceTest.java
rm src/org/bouncycastle/asn1/test/ASN1SequenceParserTest.java
rm src/org/bouncycastle/asn1/test/OctetStringTest.java
rm src/org/bouncycastle/asn1/test/ParseTest.java
rm src/org/bouncycastle/asn1/test/EnumeratedTest.java
rm src/org/bouncycastle/crypto/test/GCMReorderTest.java
rm -r src/org/bouncycastle/crypto/test/speedy
rm -r src/org/bouncycastle/crypto/test/cavp
rm -r src/org/bouncycastle/crypto/test/KDFFeedbackGeneratorTest.java
rm -r src/org/bouncycastle/crypto/test/KDFDoublePipelineIteratorGeneratorTest.java
rm -r src/org/bouncycastle/crypto/test/KDFCounterGeneratorTest.java
rm -r src/org/bouncycastle/crypto/test/AESWrapPadTest.java
rm -r src/org/bouncycastle/crypto/test/SipHashTest.java
rm src/org/bouncycastle/crypto/test/BigSkippingCipherTest.java
(2>&1 javadoc -windowtitle "$WINDOWTITLE" -doctitle "$DOCTITLE" \
-header "$HEADER" \
-group "Lightweight Crypto Packages" "org.bouncycastle.crypto*" \
-group "ASN.1 Support Packages" "org.bouncycastle.asn1*" \
-group "Math Support Packages" "org.bouncycastle.math*" \
-group "Utility Packages" "org.bouncycastle.util*" \
-classpath classes:$JDK11PATH/lib/classes.zip \
-d javadoc -sourcepath src \
org.bouncycastle.asn1 \
org.bouncycastle.asn1.cmp \
org.bouncycastle.asn1.cms \
org.bouncycastle.asn1.cryptopro \
org.bouncycastle.asn1.esf \
org.bouncycastle.asn1.ess \
org.bouncycastle.asn1.gnu \
org.bouncycastle.asn1.iana \
org.bouncycastle.asn1.icao \
org.bouncycastle.asn1.misc \
org.bouncycastle.asn1.mozilla \
org.bouncycastle.asn1.nist \
org.bouncycastle.asn1.ocsp \
org.bouncycastle.asn1.oiw \
org.bouncycastle.asn1.pkcs \
org.bouncycastle.asn1.sec \
org.bouncycastle.asn1.smime \
org.bouncycastle.asn1.teletrust \
org.bouncycastle.asn1.test \
org.bouncycastle.asn1.tsp \
org.bouncycastle.asn1.util \
org.bouncycastle.asn1.x509 \
org.bouncycastle.asn1.x9 \
org.bouncycastle.math.ec \
org.bouncycastle.crypto \
org.bouncycastle.crypto.agreement \
org.bouncycastle.crypto.commitments \
org.bouncycastle.crypto.digests \
org.bouncycastle.crypto.encodings \
org.bouncycastle.crypto.ec \
org.bouncycastle.crypto.engines \
org.bouncycastle.crypto.generators \
org.bouncycastle.crypto.io \
org.bouncycastle.crypto.kems \
org.bouncycastle.crypto.macs \
org.bouncycastle.crypto.modes \
org.bouncycastle.crypto.paddings \
org.bouncycastle.crypto.params \
org.bouncycastle.crypto.signers \
org.bouncycastle.crypto.test \
org.bouncycastle.crypto.examples \
org.bouncycastle.crypto.tls \
org.bouncycastle.util.encoders \
org.bouncycastle.util.test) > /dev/null \
PATH=$JDK11PATH/bin:$PATH
export PATH
echo "compiling"
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip *.java ; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip */*.java; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip */p*/*.java
javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip */a*/*.java
javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip */d*/*.java
javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip */e*/*.java
javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip */g*/*.java
javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip */i*/*.java
javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip */m*/*.java
javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip */s*/*.java
javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip a*/t*/*.java
javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip c*/t*/A*.java
javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip c*/t*/[BC]*.java
javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip c*/t*/D*.java
javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip c*/t*/[EHMN]*.java
javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip c*/t*/[OPR]*.java
javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip c*/t*/S*.java
javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip c*/t*/T*.java
javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip c*/t*/U*.java
javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip u*/t*/*.java
javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip */u*/*.java )
cp ../../../../core/src/test/resources/org/bouncycastle/crypto/test/*.txt classes/org/bouncycastle/crypto/test/
echo "lightweight regression test"
java -mx512m -classpath classes:$JDK11PATH/lib/classes.zip -Dbc.test.data.home=/home/dgh/bc/java/crypto/test/data org.bouncycastle.crypto.test.RegressionTest
java -classpath classes:$JDK11PATH/lib/classes.zip -Dbc.test.data.home=/home/dgh/bc/java/crypto/test/data org.bouncycastle.asn1.test.RegressionTest
)
(2>&1 find $artifacts/lcrypto-jdk11-$base -name CVS -exec rm -rf \{\} \; ) > /dev/null
fi
if test "$base" != "" -a ! -d $artifacts/jce-jdk11-$base
then
echo "making JCE release"
mkdir $artifacts/jce-jdk11-$base
mkdir $artifacts/jce-jdk11-$base/src
tar cf - index.html LICENSE.html CONTRIBUTORS.html docs | (cd $artifacts/jce-jdk11-$base; tar xf -)
((cd jce/src/main/java && tar cf - *) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd core/src/main/java && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd core/src/main/jdk1.4 && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd core/src/main/jdk1.3 && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd core/src/main/jdk1.2 && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd core/src/main/jdk1.1 && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd core/src/test/java && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd core/src/test/jdk1.4 && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd core/src/test/jdk1.3 && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd core/src/test/jdk1.2 && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd core/src/test/jdk1.1 && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd core/src/main/javadoc && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd prov/src/main/java && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd prov/src/main/javadoc && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd prov/src/test/java && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd prov/src/main/jdk1.4 && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd prov/src/test/jdk1.4 && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd prov/src/main/jdk1.3 && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd prov/src/test/jdk1.3 && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd prov/src/main/jdk1.2 && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd prov/src/main/jdk1.1 && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd prov/src/test/jdk1.1 && tar cf - * ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
((cd prov/src/main/java && tar cf - org/bouncycastle/jce/exception ) | (cd $artifacts/jce-jdk11-$base/src && tar xf -))
find $artifacts/jce-jdk11-$base -name "*.java" -exec scripts/trim.sh \{\} \;
find $artifacts/jce-jdk11-$base -name "*.java" -exec scripts/useseccert.sh \{\} \;
(
cd $artifacts/jce-jdk11-$base; mkdir classes; mkdir javadoc;
rm -rf src/org/bouncycastle/crypto/test/ntru
rm -rf src/org/bouncycastle/pqc/math/ntru
rm -rf src/org/bouncycastle/pqc/crypto/ntru
rm -rf src/org/bouncycastle/pqc/crypto/*/NTRU*
rm -rf src/org/bouncycastle/pqc/crypto/*/EncryptionKey*
rm -rf src/org/bouncycastle/pqc/crypto/*/BitStringT*
rm -rf src/org/bouncycastle/jce/cert
rm -rf src/org/bouncycastle/math/ntru
rm -rf src/org/bouncycastle/crypto/test/ntru
rm -rf src/org/bouncycastle/crypto/*/NTRU*
rm -rf src/org/bouncycastle/crypto/*/test
rm -rf src/org/bouncycastle/crypto/*/IndexGenerator*
rm src/org/bouncycastle/jcajce/provider/config/*Permission.java
rm -rf src/org/bouncycastle/jcajce/provider/asymmetric/dstu
rm src/org/bouncycastle/jcajce/provider/asymmetric/DSTU*
rm -rf src/org/bouncycastle/jcajce/PKCS12StoreParameter.java
rm src/org/bouncycastle/jce/provider/test/DHTest.java
rm src/org/bouncycastle/jce/provider/test/DSATest.java
rm src/org/bouncycastle/jce/provider/test/ECIESTest.java
rm src/org/bouncycastle/jce/provider/test/ElGamalTest.java
rm src/org/bouncycastle/jce/provider/test/NamedCurveTest.java
rm src/org/bouncycastle/jce/provider/test/PSSTest.java
rm src/org/bouncycastle/jce/provider/test/NIST*.java
rm src/org/bouncycastle/jce/provider/test/GOST3410Test.java
rm src/org/bouncycastle/jce/provider/test/JceTestUtil.java
rm src/org/bouncycastle/jce/provider/test/DetDSATest.java
rm src/org/bouncycastle/crypto/test/GCMReorderTest.java
rm -rf src/org/bouncycastle/asn1/test/GetInstanceTest.java
rm -rf src/org/bouncycastle/i18n/test
rm -rf src/org/bouncycastle/i18n/filter/test
rm -rf src/org/bouncycastle/voms
rm -rf src/org/bouncycastle/jce/ECPointUtil.java
rm -rf src/org/bouncycastle/jce/X509LDAP*.java
rm -rf src/org/bouncycastle/jce/provider/JCEEC5*.java
rm -rf src/org/bouncycastle/jce/provider/JCEEC*.java
rm -rf src/org/bouncycastle/jce/provider/CertPathValidatorUtilities.java
rm -rf src/org/bouncycastle/jce/provider/test/CRL5Test.java
rm -rf src/org/bouncycastle/jcajce/provider/asymmetric/ec/EC5*.java
rm -rf src/org/bouncycastle/jce/provider/asymmetric/ec/EC5*.java
rm -rf src/org/bouncycastle/jce/provider/EC5*.java
rm -rf src/org/bouncycastle/jce/provider/X509LDAP*.java
rm -rf src/org/bouncycastle/jce/provider/test/X509LDAP*.java
rm -rf src/org/bouncycastle/jce/provider/test/ECDSA5Test.java
rm -rf src/org/bouncycastle/jce/provider/test/ECEncodingTest.java
rm -rf src/org/bouncycastle/jce/provider/test/ECNRTest.java
rm -rf src/org/bouncycastle/jce/provider/test/IESTest.java
rm -rf src/org/bouncycastle/jce/provider/test/AttrCertTest.java
rm -rf src/org/bouncycastle/jce/provider/test/PKIXPolicyMappingTest.java
rm -rf src/org/bouncycastle/jce/provider/test/nist
rm -rf src/org/bouncycastle/jce/provider/test/rsa3
rm -rf src/org/bouncycastle/jce/provider/test/DSTU*
rm -rf src/org/bouncycastle/jce/provider/test/AEADT*
rm -rf src/org/bouncycastle/jce/spec/ECNamedCurveSpec.java
rm -rf src/org/bouncycastle/jce/cert
rm -rf src/org/bouncycastle/mail
rm -rf src/org/bouncycastle/math/ec/test
rm -rf src/org/bouncycastle/cms
rm -rf src/org/bouncycastle/ocsp
rm -rf src/org/bouncycastle/eac
rm -rf src/org/bouncycastle/cert
rm -rf src/org/bouncycastle/bcpg
rm -rf src/org/bouncycastle/pkcs
rm -rf src/org/bouncycastle/operator
rm -rf src/org/bouncycastle/openpgp
rm -rf src/org/bouncycastle/openssl
rm -rf src/org/bouncycastle/mozilla
rm -rf src/org/bouncycastle/voms
rm -rf src/org/bouncycastle/sasn1
rm -rf src/org/bouncycastle/tsp
rm -rf src/org/bouncycastle/util/encoders/test
rm -rf src/org/bouncycastle/util/utiltest
rm -rf src/org/bouncycastle/x509/PKIXCertPathReviewer.java
rm -rf src/org/bouncycastle/x509/CertPathValidatorUtilities.java
rm -rf src/org/bouncycastle/x509/PrincipalUtils.java
rm -rf src/org/bouncycastle/x509/CertPathReviewerException.java
rm -rf src/org/bouncycastle/x509/ExtendedPKIX*.java
rm -rf src/org/bouncycastle/x509/util/LDAPStoreHelper.java
rm -rf src/org/bouncycastle/jce/provider/PKIXAttrCert*.java
rm -rf src/org/bouncycastle/jce/provider/PKIXNameConstraints*.java
rm -rf src/org/bouncycastle/jce/provider/test/PKIXNameConstraintsTest.java
rm -rf src/org/bouncycastle/jce/provider/test/AttrCertSelectorTest.java
rm -rf src/org/bouncycastle/jce/provider/test/MQVTest.java
rm -rf src/org/bouncycastle/x509/ExtendedPKIX*.java
rm -rf src/org/bouncycastle/jce/provider/PKIXCRL*.java
rm -rf src/org/bouncycastle/jce/provider/RFC3281*.java
rm -rf src/org/bouncycastle/jce/provider/JDKPKCS12StoreParameter.java
rm -rf src/org/bouncycastle/jce/provider/CertPathValidatorUtilities.java
rm -rf src/org/bouncycastle/jce/ProviderConfigurationPermission.java
rm -rf src/org/bouncycastle/jce/provider/X509StoreLDAPAttrCerts.java
rm -rf src/org/bouncycastle/jce/provider/X509StoreLDAPCertPairs.java
rm -rf src/org/bouncycastle/jce/provider/X509StoreLDAPCerts.java
rm -rf src/org/bouncycastle/jce/provider/X509StoreLDAPCRLs.java
rm -rf src/org/bouncycastle/jce/provider/PKIXNameConstraint*.java
rm -rf src/org/bouncycastle/openssl/test/WriterTest.java
rm -rf src/org/bouncycastle/jcajce/provider/config/PKCS12StoreParameter.java
rm -rf src/org/bouncycastle/jcajce/provider/asymmetric/util/EC5Util.java
rm -rf src/org/bouncycastle/jcajce/provider/test/PrivateConstructorTest.java
find src -name AllTests.java -exec rm {} \;
rm src/org/bouncycastle/asn1/test/ASN1SequenceParserTest.java
rm src/org/bouncycastle/asn1/test/OctetStringTest.java
rm src/org/bouncycastle/asn1/test/ParseTest.java
rm src/org/bouncycastle/jce/provider/test/ImplicitlyCaTest.java
rm src/org/bouncycastle/jce/provider/test/DHIESTest.java
rm -rf src/org/bouncycastle/pqc/jcajce
rm -rf src/org/bouncycastle/crypto/tls/test
rm -rf src/org/bouncycastle/crypto/test
rm -rf src/org/bouncycastle/asn1/test
(2>&1 javadoc -windowtitle "$WINDOWTITLE" -doctitle "$DOCTITLE" \
-header "$HEADER" \
-group "Cleanroom JCE" "javax.crypto*" \
-group "JCE Utility and Extension Packages" "org.bouncycastle.jce*" \
-group "OCSP and OpenSSL PEM Support Packages" "org.bouncycastle.ocsp*:org.bouncycastle.openssl*" \
-group "ASN.1 Support Packages" "org.bouncycastle.asn1*" \
-group "Lightweight Crypto Packages" "org.bouncycastle.crypto*" \
-group "Utility Packages" "org.bouncycastle.util*:org.bouncycastle.math*" \
-group "JCE Provider and Test Classes" "org.bouncycastle.jce.provider*" \
-classpath classes \
-d docs -sourcepath src \
java.security.spec \
javax.crypto \
javax.crypto.interfaces \
javax.crypto.spec \
org.bouncycastle.asn1 \
org.bouncycastle.asn1.cmp \
org.bouncycastle.asn1.cms \
org.bouncycastle.asn1.cryptopro \
org.bouncycastle.asn1.esf \
org.bouncycastle.asn1.ess \
org.bouncycastle.asn1.gnu \
org.bouncycastle.asn1.iana \
org.bouncycastle.asn1.icao \
org.bouncycastle.asn1.misc \
org.bouncycastle.asn1.mozilla \
org.bouncycastle.asn1.nist \
org.bouncycastle.asn1.ocsp \
org.bouncycastle.asn1.oiw \
org.bouncycastle.asn1.pkcs \
org.bouncycastle.asn1.sec \
org.bouncycastle.asn1.smime \
org.bouncycastle.asn1.teletrust \
org.bouncycastle.asn1.test \
org.bouncycastle.asn1.tsp \
org.bouncycastle.asn1.util \
org.bouncycastle.asn1.x509 \
org.bouncycastle.asn1.x9 \
org.bouncycastle.math.ec \
org.bouncycastle.crypto \
org.bouncycastle.crypto.agreement \
org.bouncycastle.crypto.commitments \
org.bouncycastle.crypto.digests \
org.bouncycastle.crypto.encodings \
org.bouncycastle.crypto.ec \
org.bouncycastle.crypto.engines \
org.bouncycastle.crypto.generators \
org.bouncycastle.crypto.io \
org.bouncycastle.crypto.kems \
org.bouncycastle.crypto.macs \
org.bouncycastle.crypto.modes \
org.bouncycastle.crypto.paddings \
org.bouncycastle.crypto.params \
org.bouncycastle.crypto.signers \
org.bouncycastle.crypto.test \
org.bouncycastle.crypto.tls \
org.bouncycastle.crypto.examples \
org.bouncycastle.jce \
org.bouncycastle.jce.cert \
org.bouncycastle.jce.interfaces \
org.bouncycastle.jce.spec \
org.bouncycastle.jce.examples \
org.bouncycastle.jce.provider \
org.bouncycastle.jcajce.provider.asymmetric \
org.bouncycastle.jcajce.provider.asymmetric.ec \
org.bouncycastle.jcajce.provider.symmetric \
org.bouncycastle.jce.provider.test \
org.bouncycastle.ocsp \
org.bouncycastle.ocsp.test \
org.bouncycastle.x509 \
org.bouncycastle.x509.examples \
org.bouncycastle.x509.extension \
org.bouncycastle.util.encoders \
org.bouncycastle.util.test) > /dev/null \
PATH=$JDK11PATH/bin:$PATH
export PATH
echo "compiling"
(cd src/java/; javac -d ../../classes -classpath ../../classes:../../src:$JDK11PATH/lib/classes.zip */*.java */*/*.java )
(cd src/javax/crypto; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip *.java */*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip asn1/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip crypto/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip *.java pqc/*/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip *.java [opqrstuv]*/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip *.java [ijklmn]*/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip asn1/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip asn1/*/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip asn1/*/*/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip crypto/[ade]*/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip crypto/[gimpsu]*/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip crypto/t*/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip jcajce/*/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip jcajce/*/*/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip jcajce/provider/digest/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip jcajce/provider/symmetric/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip jcajce/*/*/*/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip jce/*/*/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip jce/*/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip util/*/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip [abc]*/*/*/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip [ijm]*/*/*/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip [ptuvx]*/*/*/*.java)
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:$JDK11PATH/lib/classes.zip x509/*.java x509/*/*.java)
rm -rf classes/org/bouncycastle/crypto/test
echo "provider regression test"
java -classpath classes:$JDK11PATH/lib/classes.zip org.bouncycastle.jce.provider.test.RegressionTest
)
( 2>&1 find $artifacts/jce-jdk11-$base -name CVS -exec rm -rf \{\} \;) > /dev/null
fi
if test "$base" != "" -a ! -d $artifacts/bcpkix-jdk11-$base
then
echo "making PKIX release"
mkdir $artifacts/bcpkix-jdk11-$base
mkdir $artifacts/bcpkix-jdk11-$base/src
tar cf - index.html LICENSE.html CONTRIBUTORS.html docs | (cd $artifacts/bcpkix-jdk11-$base; tar xf -)
((cd pkix/src/main/java && tar cf - * ) | (cd $artifacts/bcpkix-jdk11-$base/src && tar xf -))
((cd pkix/src/main/jdk1.4 && tar cf - org/bouncycastle/cms org/bouncycastle/eac ) | (cd $artifacts/bcpkix-jdk11-$base/src && tar xf -))
((cd pkix/src/main/jdk1.3 && tar cf - org/bouncycastle/cert org/bouncycastle/pkcs org/bouncycastle/cms org/bouncycastle/eac org/bouncycastle/tsp org/bouncycastle/operator ) | (cd $artifacts/bcpkix-jdk11-$base/src && tar xf -))
((cd pkix/src/main/jdk1.2 && tar cf - org/bouncycastle/cert org/bouncycastle/cms ) | (cd $artifacts/bcpkix-jdk11-$base/src && tar xf -))
((cd pkix/src/main/jdk1.1 && tar cf - * ) | (cd $artifacts/bcpkix-jdk11-$base/src && tar xf -))
((cd pkix/src/test/java && tar cf - * ) | (cd $artifacts/bcpkix-jdk11-$base/src && tar xf -))
((cd pkix/src/test/jdk1.3 && tar cf - org/bouncycastle/cert ) | (cd $artifacts/bcpkix-jdk11-$base/src && tar xf -))
((cd pkix/src/test/jdk1.1 && tar cf - org/bouncycastle/cert ) | (cd $artifacts/bcpkix-jdk11-$base/src && tar xf -))
((cd pkix/src/main/javadoc && tar cf - * ) | (cd $artifacts/bcpkix-jdk11-$base/src && tar xf -))
find $artifacts/bcpkix-jdk11-$base -name "*.java" -exec scripts/trim.sh \{\} \;
find $artifacts/bcpkix-jdk11-$base -name "*.java" -exec scripts/useseccert.sh \{\} \;
(
cd $artifacts/bcpkix-jdk11-$base; mkdir classes; mkdir javadoc;
PATH=$JDK11PATH/bin:$PATH
export PATH
rm -rf src/java
rm -rf src/org/bouncycastle/jce
rm -rf src/org/bouncycastle/ocsp
rm -rf src/org/bouncycastle/bcpg
rm -rf src/org/bouncycastle/x509
rm -rf src/org/bouncycastle/mail
rm -rf src/org/bouncycastle/openpgp
rm -rf src/org/bouncycastle/asn1
rm -rf src/org/bouncycastle/i18n
rm -rf src/org/bouncycastle/jcajce
rm -rf src/org/bouncycastle/cert/jcajce/JcaAttributeCertificateIssuer.java
rm -rf src/org/bouncycastle/cert/test/ConverterTest*
rm -rf src/org/bouncycastle/cert/test/Bc*
rm -rf src/org/bouncycastle/cms/test
rm -rf src/org/bouncycastle/dvcs/test
rm -rf src/org/bouncycastle/eac/test
rm -rf src/org/bouncycastle/pkcs/test
rm -rf src/org/bouncycastle/tsp/test
rm -rf src/org/bouncycastle/openssl/test
rm -rf src/org/bouncycastle/tsp/GenTimeAccuracyUnit*
rm -rf src/org/bouncycastle/tsp/TimeStampTokenInfoUnit*
rm src/org/bouncycastle/cert/dane/fetcher/JndiDANEFetcherFactory.java
rm src/org/bouncycastle/cert/test/CertPathLoopTest.java
find src -name AllTests.java -exec rm {} \;
javadoc -windowtitle "$WINDOWTITLE" -doctitle "$DOCTITLE" \
-header "$HEADER" \
-group "Basic Signing And Encryption" "org.bouncycastle.operator*" \
-group "Certificate Generation And Handling Support Packages" "org.bouncycastle.cert*" \
-group "CMS Support Packages" "org.bouncycastle.cms*" \
-group "EAC Support Packages" "org.bouncycastle.eac*" \
-group "TSP Support Packages" "org.bouncycastle.tsp*" \
-group "PKCS Support Packages" "org.bouncycastle.pkcs*" \
-group "OpenSSL PEM Support Packages" "org.bouncycastle.openssl*" \
-classpath classes:../jce-jdk11-$base/classes:$JDK11PATH/lib/classes.zip \
-d javadoc -sourcepath src \
org.bouncycastle.openssl \
org.bouncycastle.voms \
org.bouncycastle.mozilla \
org.bouncycastle.pkcs \
org.bouncycastle.pkcs.bc \
org.bouncycastle.pkcs.jcajce \
org.bouncycastle.cert \
org.bouncycastle.cert.cmp \
org.bouncycastle.cert.crmf \
org.bouncycastle.cert.jcajce \
org.bouncycastle.cert.ocsp \
org.bouncycastle.cert.selector \
org.bouncycastle.cms \
org.bouncycastle.cms.bc \
org.bouncycastle.cms.jcajce \
org.bouncycastle.cert.test > /dev/null \
echo "compiling"
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:../../../../jce-jdk11-$base/classes:$JDK11PATH/lib/classes.zip */*.java )
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:../../../../jce-jdk11-$base/classes:$JDK11PATH/lib/classes.zip */*/*.java )
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:../../../../jce-jdk11-$base/classes:$JDK11PATH/lib/classes.zip */*/*/*.java )
java -mx512m -classpath ../jce-jdk11-$base/classes:classes:$JDK11PATH/lib/classes.zip org.bouncycastle.cert.test.CertTest
java -mx512m -classpath ../jce-jdk11-$base/classes:classes:$JDK11PATH/lib/classes.zip org.bouncycastle.cert.test.AttrCertTest
java -mx512m -classpath ../jce-jdk11-$base/classes:classes:$JDK11PATH/lib/classes.zip org.bouncycastle.cert.test.PKCS10Test
# java -classpath ../$artifacts/jce-jdk11-$base/classes:classes:$JDK11PATH/lib/classes.zip org.bouncycastle.openssl.test.ReaderTest
)
(2>&1 find $artifacts/bcpkix-jdk11-$base -name CVS -exec rm -rf \{\} \;) > /dev/null
fi
if test "$base" != "" -a ! -d $artifacts/bcpg-jdk11-$base
then
echo "making OpenPGP release"
mkdir $artifacts/bcpg-jdk11-$base
mkdir $artifacts/bcpg-jdk11-$base/src
tar cf - index.html LICENSE.html CONTRIBUTORS.html docs | (cd $artifacts/bcpg-jdk11-$base; tar xf -)
((cd pg/src/main/java && tar cf - * ) | (cd $artifacts/bcpg-jdk11-$base/src && tar xf -))
((cd pg/src/main/jdk1.4 && tar cf - * ) | (cd $artifacts/bcpg-jdk11-$base/src && tar xf -))
((cd pg/src/main/jdk1.1 && tar cf - * ) | (cd $artifacts/bcpg-jdk11-$base/src && tar xf -))
((cd pg/src/test/java && tar cf - * ) | (cd $artifacts/bcpg-jdk11-$base/src && tar xf -))
((cd pg/src/test/jdk1.4 && tar cf - * ) | (cd $artifacts/bcpg-jdk11-$base/src && tar xf -))
((cd pg/src/test/jdk1.3 && tar cf - * ) | (cd $artifacts/bcpg-jdk11-$base/src && tar xf -))
((cd pg/src/test/jdk1.1 && tar cf - * ) | (cd $artifacts/bcpg-jdk11-$base/src && tar xf -))
((cd pg/src/main/javadoc && tar cf - * ) | (cd $artifacts/bcpg-jdk11-$base/src && tar xf -))
find $artifacts/bcpg-jdk11-$base -name "*.java" -exec scripts/trim.sh \{\} \;
(
cd $artifacts/bcpg-jdk11-$base; mkdir classes; mkdir javadoc;
PATH=$JDK11PATH/bin:$PATH
export PATH
rm -rf src/java
rm -rf src/org/bouncycastle/jce
rm -rf src/org/bouncycastle/ocsp
rm -rf src/org/bouncycastle/mail
rm -rf src/org/bouncycastle/pkcs
rm -rf src/org/bouncycastle/cms
rm -rf src/org/bouncycastle/eac
rm -rf src/org/bouncycastle/cert
rm -rf src/org/bouncycastle/tsp
rm -rf src/org/bouncycastle/x509
rm -rf src/org/bouncycastle/openssl
rm -rf src/org/bouncycastle/operator
rm -rf src/org/bouncycastle/voms
rm -rf src/org/bouncycastle/sasn1
rm -rf src/org/bouncycastle/asn1/test
rm -f src/org/bouncycastle/openpgp/test/DSA2Test.java
rm -f src/org/bouncycastle/openpgp/test/PGPUnicodeTest.java
rm -f src/org/bouncycastle/openpgp/examples/DSAElGamalKeyRingGenerator.java
find src -name AllTests.java -exec rm {} \;
javadoc -windowtitle "$WINDOWTITLE" -doctitle "$DOCTITLE" \
-header "$HEADER" \
-group "BCPG Support Packages" "org.bouncycastle.bcpg*" \
-group "OpenPGP Packages" "org.bouncycastle.openpgp*" \
-classpath classes:../jce-jdk11-$base/classes:$JDK11PATH/lib/classes.zip \
-d javadoc -sourcepath src \
org.bouncycastle.bcpg \
org.bouncycastle.bcpg.attr \
org.bouncycastle.bcpg.sig \
org.bouncycastle.openpgp \
org.bouncycastle.openpgp.examples \
org.bouncycastle.openpgp.test > /dev/null \
echo "compiling"
ed src/org/bouncycastle/bcpg/ArmoredOutputStream.java <<%
/@RELEASE_NAME@/s//$version/
w
q
%
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:../../../../jce-jdk11-$base/classes:$JDK11PATH/lib/classes.zip bcpg/*.java bcpg/*/*.java openpgp/*.java )
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:../../../../jce-jdk11-$base/classes:$JDK11PATH/lib/classes.zip openpgp/*/*.java openpgp/*/*/*.java )
(cd src/org/bouncycastle; javac -d ../../../classes -classpath ../../../classes:../../../src:../../../../jce-jdk11-$base/classes:$JDK11PATH/lib/classes.zip openpgp/test/RegressionTest.java )
cp ../../../../pg/src/test/resources/org/bouncycastle/openpgp/test/bigpub.asc classes/org/bouncycastle/openpgp/test/bigpub.asc
java -mx512m -classpath ../jce-jdk11-$base/classes:classes:$JDK11PATH/lib/classes.zip org.bouncycastle.openpgp.test.RegressionTest
)
(2>&1 find $artifacts/bcpg-jdk11-$base -name CVS -exec rm -rf \{\} \;) > /dev/null
fi