| 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 CVS and prepares | 6 # This shell script checks out the NSS source tree from CVS 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 rm -rf mozilla/security/nss/lib | 12 rm -rf mozilla/security/nss/lib |
| 13 cvs -q -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot export \ | 13 cvs -q -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot export \ |
| 14 -r NSS_3_12_6_RTM mozilla/security/nss/lib | 14 -r NSS_3_12_7_RTM mozilla/security/nss/lib |
| 15 | 15 |
| 16 # Rename one of the utf8.c files to avoid name conflict. | 16 # Rename one of the utf8.c files to avoid name conflict. |
| 17 mv mozilla/security/nss/lib/base/utf8.c mozilla/security/nss/lib/base/nssutf8.c | 17 mv mozilla/security/nss/lib/base/utf8.c mozilla/security/nss/lib/base/nssutf8.c |
| 18 | 18 |
| 19 rm -r mozilla/security/nss/lib/ckfw | 19 rm -r mozilla/security/nss/lib/ckfw |
| 20 rm -r mozilla/security/nss/lib/crmf | 20 rm -r mozilla/security/nss/lib/crmf |
| 21 rm -r mozilla/security/nss/lib/freebl/ecl/tests | 21 rm -r mozilla/security/nss/lib/freebl/ecl/tests |
| 22 rm -r mozilla/security/nss/lib/freebl/mpi/doc | 22 rm -r mozilla/security/nss/lib/freebl/mpi/doc |
| 23 rm -r mozilla/security/nss/lib/freebl/mpi/tests | 23 rm -r mozilla/security/nss/lib/freebl/mpi/tests |
| 24 rm -r mozilla/security/nss/lib/freebl/mpi/utils | 24 rm -r mozilla/security/nss/lib/freebl/mpi/utils |
| (...skipping 17 matching lines...) Expand all Loading... |
| 42 # Remove files for building shared libraries/DLLs. | 42 # Remove files for building shared libraries/DLLs. |
| 43 find mozilla/security/nss/lib -name "*.def" -print | xargs rm | 43 find mozilla/security/nss/lib -name "*.def" -print | xargs rm |
| 44 find mozilla/security/nss/lib -name "*.rc" -print | xargs rm | 44 find mozilla/security/nss/lib -name "*.rc" -print | xargs rm |
| 45 | 45 |
| 46 # Remove obsolete files or files we don't need. | 46 # Remove obsolete files or files we don't need. |
| 47 rm mozilla/security/nss/lib/util/secload.c | 47 rm mozilla/security/nss/lib/util/secload.c |
| 48 rm mozilla/security/nss/lib/util/secplcy.c | 48 rm mozilla/security/nss/lib/util/secplcy.c |
| 49 rm mozilla/security/nss/lib/util/secplcy.h | 49 rm mozilla/security/nss/lib/util/secplcy.h |
| 50 rm mozilla/security/nss/lib/certhigh/certvfypkix.c | 50 rm mozilla/security/nss/lib/certhigh/certvfypkix.c |
| 51 rm mozilla/security/nss/lib/certhigh/certvfypkixprint.c | 51 rm mozilla/security/nss/lib/certhigh/certvfypkixprint.c |
| 52 rm mozilla/security/nss/lib/pki1/*.c | |
| 53 rm mozilla/security/nss/lib/pki1/oidgen.perl | |
| 54 rm mozilla/security/nss/lib/pki1/oids.txt | |
| 55 rm mozilla/security/nss/lib/smime/*.c | 52 rm mozilla/security/nss/lib/smime/*.c |
| 56 | 53 |
| 57 find mozilla/security/nss/lib/ssl -type f ! -name sslerr.h | xargs rm | 54 find mozilla/security/nss/lib/ssl -type f ! -name sslerr.h | xargs rm |
| 58 | 55 |
| 59 find mozilla/security/nss/lib/freebl -type f \ | 56 find mozilla/security/nss/lib/freebl -type f \ |
| 60 ! -name aeskeywrap.c ! -name alg2268.c ! -name alghmac.c \ | 57 ! -name aeskeywrap.c ! -name alg2268.c ! -name alghmac.c \ |
| 61 ! -name alghmac.h ! -name arcfive.c ! -name arcfour.c \ | 58 ! -name alghmac.h ! -name arcfive.c ! -name arcfour.c \ |
| 62 ! -name blapi.h ! -name blapii.h ! -name blapit.h \ | 59 ! -name blapi.h ! -name blapii.h ! -name blapit.h \ |
| 63 ! -name camellia.c ! -name camellia.h ! -name des.c \ | 60 ! -name camellia.c ! -name camellia.h ! -name des.c \ |
| 64 ! -name des.h ! -name desblapi.c ! -name dh.c \ | 61 ! -name des.h ! -name desblapi.c ! -name dh.c \ |
| (...skipping 14 matching lines...) Expand all Loading... |
| 79 ! -name mp_gf2m-priv.h ! -name mp_gf2m.c ! -name mp_gf2m.h \ | 76 ! -name mp_gf2m-priv.h ! -name mp_gf2m.c ! -name mp_gf2m.h \ |
| 80 ! -name primes.c ! -name pqg.c ! -name rawhash.c \ | 77 ! -name primes.c ! -name pqg.c ! -name rawhash.c \ |
| 81 ! -name rijndael.c ! -name rijndael.h ! -name rijndael32.tab \ | 78 ! -name rijndael.c ! -name rijndael.h ! -name rijndael32.tab \ |
| 82 ! -name rsa.c ! -name sechash.h ! -name secmpi.h \ | 79 ! -name rsa.c ! -name sechash.h ! -name secmpi.h \ |
| 83 ! -name secrng.h ! -name seed.c ! -name seed.h \ | 80 ! -name secrng.h ! -name seed.c ! -name seed.h \ |
| 84 ! -name sha256.h ! -name sha512.c ! -name sha_fast.c \ | 81 ! -name sha256.h ! -name sha512.c ! -name sha_fast.c \ |
| 85 ! -name sha_fast.h ! -name shsign.h ! -name shvfy.c \ | 82 ! -name sha_fast.h ! -name shsign.h ! -name shvfy.c \ |
| 86 ! -name sysrand.c ! -name tlsprfalg.c ! -name unix_rand.c \ | 83 ! -name sysrand.c ! -name tlsprfalg.c ! -name unix_rand.c \ |
| 87 ! -name win_rand.c \ | 84 ! -name win_rand.c \ |
| 88 | xargs rm | 85 | xargs rm |
| OLD | NEW |