OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 # This shell script checks out the NSS source tree from hg and prepares | 6 # This shell script checks out the NSS source tree from hg and prepares |
7 # it for Chromium. | 7 # it for Chromium. |
8 | 8 |
9 # Make the script exit as soon as something fails. | 9 # Make the script exit as soon as something fails. |
10 set -ex | 10 set -ex |
11 | 11 |
12 # We only need the nss/lib directory, but hg requires us to check out the | 12 # We only need the nss/lib directory, but hg requires us to check out the |
13 # complete nss source tree. | 13 # complete nss source tree. |
14 rm -rf nss | 14 rm -rf nss |
15 hg clone -u NSS_3_21_RTM https://hg.mozilla.org/projects/nss | 15 hg clone -u NSS_3_23_RTM https://hg.mozilla.org/projects/nss |
16 | 16 |
17 # Rename one of the utf8.c files to avoid name conflict. | 17 # Rename one of the utf8.c files to avoid name conflict. |
18 mv nss/lib/base/utf8.c nss/lib/base/nssutf8.c | 18 mv nss/lib/base/utf8.c nss/lib/base/nssutf8.c |
19 | 19 |
20 rm -r nss/lib/ckfw/capi | 20 rm -r nss/lib/ckfw/capi |
21 rm -r nss/lib/ckfw/dbm | 21 rm -r nss/lib/ckfw/dbm |
22 rm -r nss/lib/ckfw/nssmkey | 22 rm -r nss/lib/ckfw/nssmkey |
23 rm -r nss/lib/crmf | 23 rm -r nss/lib/crmf |
24 rm -r nss/lib/dbm | 24 rm -r nss/lib/dbm |
25 rm -r nss/lib/freebl/ecl/tests | 25 rm -r nss/lib/freebl/ecl/tests |
(...skipping 29 matching lines...) Expand all Loading... |
55 rm nss/lib/util/secplcy.h | 55 rm nss/lib/util/secplcy.h |
56 rm nss/lib/smime/*.c | 56 rm nss/lib/smime/*.c |
57 | 57 |
58 find nss/lib/ssl -type f ! -name sslerr.h | xargs rm | 58 find nss/lib/ssl -type f ! -name sslerr.h | xargs rm |
59 | 59 |
60 find nss/lib/freebl -type f \ | 60 find nss/lib/freebl -type f \ |
61 ! -name aeskeywrap.c ! -name alg2268.c ! -name alghmac.c \ | 61 ! -name aeskeywrap.c ! -name alg2268.c ! -name alghmac.c \ |
62 ! -name alghmac.h ! -name arcfive.c ! -name arcfour.c \ | 62 ! -name alghmac.h ! -name arcfive.c ! -name arcfour.c \ |
63 ! -name blapi.h ! -name blapii.h ! -name blapit.h \ | 63 ! -name blapi.h ! -name blapii.h ! -name blapit.h \ |
64 ! -name camellia.c ! -name camellia.h \ | 64 ! -name camellia.c ! -name camellia.h \ |
| 65 ! -name chacha20.c ! -name chacha20.h ! -name chacha20_vec.c \ |
| 66 ! -name chacha20poly1305.c ! -name chacha20poly1305.h \ |
65 ! -name ctr.c ! -name ctr.h ! -name cts.c ! -name cts.h \ | 67 ! -name ctr.c ! -name ctr.h ! -name cts.c ! -name cts.h \ |
66 ! -name des.c ! -name des.h ! -name desblapi.c ! -name dh.c \ | 68 ! -name des.c ! -name des.h ! -name desblapi.c ! -name dh.c \ |
67 ! -name drbg.c ! -name dsa.c ! -name ec.c \ | 69 ! -name drbg.c ! -name dsa.c ! -name ec.c \ |
68 ! -name ec.h ! -name ec2.h ! -name ecdecode.c ! -name ecl-curve.h \ | 70 ! -name ec.h ! -name ec2.h ! -name ecdecode.c ! -name ecl-curve.h \ |
69 ! -name ecl-exp.h ! -name ecl-priv.h ! -name ecl.c \ | 71 ! -name ecl-exp.h ! -name ecl-priv.h ! -name ecl.c \ |
70 ! -name ecl.c ! -name ecl.h ! -name ecl_curve.c \ | 72 ! -name ecl.c ! -name ecl.h ! -name ecl_curve.c \ |
71 ! -name ecl_gf.c ! -name ecl_mult.c ! -name ecp.h \ | 73 ! -name ecl_gf.c ! -name ecl_mult.c ! -name ecp.h \ |
72 ! -name ecp_256.c ! -name ecp_256_32.c \ | 74 ! -name ecp_256.c ! -name ecp_256_32.c \ |
73 ! -name ecp_384.c ! -name ecp_521.c \ | 75 ! -name ecp_384.c ! -name ecp_521.c \ |
74 ! -name ecp_aff.c ! -name ecp_jac.c ! -name ecp_jm.c \ | 76 ! -name ecp_aff.c ! -name ecp_jac.c ! -name ecp_jm.c \ |
75 ! -name ecp_mont.c ! -name ec_naf.c ! -name gcm.c ! -name gcm.h \ | 77 ! -name ecp_mont.c ! -name ec_naf.c ! -name gcm.c ! -name gcm.h \ |
76 ! -name hmacct.c ! -name hmacct.h \ | 78 ! -name hmacct.c ! -name hmacct.h \ |
77 ! -name intel-aes.h ! -name intel-gcm-wrap.c ! -name intel-gcm.h \ | 79 ! -name intel-aes.h ! -name intel-gcm-wrap.c ! -name intel-gcm.h \ |
78 ! -name intel-aes-x64-masm.asm ! -name intel-aes-x86-masm.asm \ | 80 ! -name intel-aes-x64-masm.asm ! -name intel-aes-x86-masm.asm \ |
79 ! -name intel-gcm-x64-masm.asm ! -name intel-gcm-x86-masm.asm \ | 81 ! -name intel-gcm-x64-masm.asm ! -name intel-gcm-x86-masm.asm \ |
80 ! -name jpake.c ! -name md2.c \ | 82 ! -name jpake.c ! -name md2.c \ |
81 ! -name md5.c ! -name logtab.h ! -name mpcpucache.c \ | 83 ! -name md5.c ! -name logtab.h ! -name mpcpucache.c \ |
82 ! -name mpi-config.h \ | 84 ! -name mpi-config.h \ |
83 ! -name mpi-priv.h ! -name mpi.c ! -name mpi.h \ | 85 ! -name mpi-priv.h ! -name mpi.c ! -name mpi.h \ |
84 ! -name mpi_amd64.c ! -name mpi_arm.c ! -name mpi_x86_asm.c \ | 86 ! -name mpi_amd64.c ! -name mpi_arm.c ! -name mpi_x86_asm.c \ |
85 ! -name mplogic.c ! -name mplogic.h ! -name mpmontg.c \ | 87 ! -name mplogic.c ! -name mplogic.h ! -name mpmontg.c \ |
86 ! -name mpprime.c ! -name mpprime.h \ | 88 ! -name mpprime.c ! -name mpprime.h \ |
87 ! -name mp_gf2m-priv.h ! -name mp_gf2m.c ! -name mp_gf2m.h \ | 89 ! -name mp_gf2m-priv.h ! -name mp_gf2m.c ! -name mp_gf2m.h \ |
| 90 ! -name poly1305-donna-x64-sse2-incremental-source.c \ |
| 91 ! -name poly1305.c ! -name poly1305.h \ |
88 ! -name primes.c ! -name pqg.c ! -name pqg.h ! -name rawhash.c \ | 92 ! -name primes.c ! -name pqg.c ! -name pqg.h ! -name rawhash.c \ |
89 ! -name rijndael.c ! -name rijndael.h ! -name rijndael32.tab \ | 93 ! -name rijndael.c ! -name rijndael.h ! -name rijndael32.tab \ |
90 ! -name rsa.c ! -name rsapkcs.c ! -name secmpi.h \ | 94 ! -name rsa.c ! -name rsapkcs.c ! -name secmpi.h \ |
91 ! -name secrng.h ! -name seed.c ! -name seed.h \ | 95 ! -name secrng.h ! -name seed.c ! -name seed.h \ |
92 ! -name sha256.h ! -name sha512.c ! -name sha_fast.c \ | 96 ! -name sha256.h ! -name sha512.c ! -name sha_fast.c \ |
93 ! -name sha_fast.h ! -name shsign.h ! -name shvfy.c \ | 97 ! -name sha_fast.h ! -name shsign.h ! -name shvfy.c \ |
94 ! -name sysrand.c ! -name tlsprfalg.c ! -name unix_rand.c \ | 98 ! -name sysrand.c ! -name tlsprfalg.c ! -name unix_rand.c \ |
95 ! -name win_rand.c \ | 99 ! -name win_rand.c \ |
96 | xargs rm | 100 | xargs rm |
OLD | NEW |