| 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_13_5_RTM mozilla/security/nss/lib |  14     -D "2012-06-26 01:00:00 PDT" 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/capi |  19 rm -r mozilla/security/nss/lib/ckfw/capi | 
|  20 rm -r mozilla/security/nss/lib/ckfw/dbm |  20 rm -r mozilla/security/nss/lib/ckfw/dbm | 
|  21 rm -r mozilla/security/nss/lib/ckfw/nssmkey |  21 rm -r mozilla/security/nss/lib/ckfw/nssmkey | 
|  22 rm -r mozilla/security/nss/lib/crmf |  22 rm -r mozilla/security/nss/lib/crmf | 
|  23 rm -r mozilla/security/nss/lib/freebl/ecl/tests |  23 rm -r mozilla/security/nss/lib/freebl/ecl/tests | 
|  24 rm -r mozilla/security/nss/lib/freebl/mpi/doc |  24 rm -r mozilla/security/nss/lib/freebl/mpi/doc | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
|  44 find mozilla/security/nss/lib -name "*.def" -print | xargs rm |  44 find mozilla/security/nss/lib -name "*.def" -print | xargs rm | 
|  45 find mozilla/security/nss/lib -name "*.rc" -print | xargs rm |  45 find mozilla/security/nss/lib -name "*.rc" -print | xargs rm | 
|  46  |  46  | 
|  47 # Remove obsolete files or files we don't need. |  47 # Remove obsolete files or files we don't need. | 
|  48 rm mozilla/security/nss/lib/ckfw/builtins/certdata.perl |  48 rm mozilla/security/nss/lib/ckfw/builtins/certdata.perl | 
|  49 rm mozilla/security/nss/lib/ckfw/builtins/certdata.txt |  49 rm mozilla/security/nss/lib/ckfw/builtins/certdata.txt | 
|  50 rm mozilla/security/nss/lib/ckfw/ck.api |  50 rm mozilla/security/nss/lib/ckfw/ck.api | 
|  51 rm mozilla/security/nss/lib/ckfw/ckapi.perl |  51 rm mozilla/security/nss/lib/ckfw/ckapi.perl | 
|  52 rm mozilla/security/nss/lib/libpkix/pkix/params/pkix_buildparams.c |  52 rm mozilla/security/nss/lib/libpkix/pkix/params/pkix_buildparams.c | 
|  53 rm mozilla/security/nss/lib/libpkix/pkix/params/pkix_buildparams.h |  53 rm mozilla/security/nss/lib/libpkix/pkix/params/pkix_buildparams.h | 
 |  54 rm mozilla/security/nss/lib/util/hasht.h | 
|  54 rm mozilla/security/nss/lib/util/secload.c |  55 rm mozilla/security/nss/lib/util/secload.c | 
|  55 rm mozilla/security/nss/lib/util/secplcy.c |  56 rm mozilla/security/nss/lib/util/secplcy.c | 
|  56 rm mozilla/security/nss/lib/util/secplcy.h |  57 rm mozilla/security/nss/lib/util/secplcy.h | 
|  57 rm mozilla/security/nss/lib/smime/*.c |  58 rm mozilla/security/nss/lib/smime/*.c | 
|  58  |  59  | 
|  59 find mozilla/security/nss/lib/ssl -type f ! -name sslerr.h | xargs rm |  60 find mozilla/security/nss/lib/ssl -type f ! -name sslerr.h | xargs rm | 
|  60  |  61  | 
|  61 find mozilla/security/nss/lib/freebl -type f \ |  62 find mozilla/security/nss/lib/freebl -type f \ | 
|  62     ! -name aeskeywrap.c ! -name alg2268.c ! -name alghmac.c \ |  63     ! -name aeskeywrap.c ! -name alg2268.c ! -name alghmac.c \ | 
|  63     ! -name alghmac.h ! -name arcfive.c ! -name arcfour.c \ |  64     ! -name alghmac.h ! -name arcfive.c ! -name arcfour.c \ | 
|  64     ! -name blapi.h ! -name blapii.h ! -name blapit.h \ |  65     ! -name blapi.h ! -name blapii.h ! -name blapit.h \ | 
|  65     ! -name camellia.c ! -name camellia.h ! -name des.c \ |  66     ! -name camellia.c ! -name camellia.h ! -name des.c \ | 
|  66     ! -name des.h ! -name desblapi.c ! -name dh.c \ |  67     ! -name des.h ! -name desblapi.c ! -name dh.c \ | 
|  67     ! -name drbg.c ! -name dsa.c ! -name ec.c \ |  68     ! -name drbg.c ! -name dsa.c ! -name ec.c \ | 
|  68     ! -name ec.h ! -name ec2.h ! -name ecl-curve.h \ |  69     ! -name ec.h ! -name ec2.h ! -name ecl-curve.h \ | 
|  69     ! -name ecl-exp.h ! -name ecl-priv.h ! -name ecl.c \ |  70     ! -name ecl-exp.h ! -name ecl-priv.h ! -name ecl.c \ | 
|  70     ! -name ecl.c ! -name ecl.h ! -name ecl_curve.c \ |  71     ! -name ecl.c ! -name ecl.h ! -name ecl_curve.c \ | 
|  71     ! -name ecl_gf.c ! -name ecl_mult.c ! -name ecp.h \ |  72     ! -name ecl_gf.c ! -name ecl_mult.c ! -name ecp.h \ | 
|  72     ! -name ecp_aff.c ! -name ecp_jac.c ! -name ecp_jm.c \ |  73     ! -name ecp_aff.c ! -name ecp_jac.c ! -name ecp_jm.c \ | 
|  73     ! -name ecp_mont.c ! -name ec_naf.c ! -name hasht.h \ |  74     ! -name ecp_mont.c ! -name ec_naf.c ! -name hasht.h \ | 
|  74     ! -name jpake.c ! -name md2.c ! -name md5.c ! -name logtab.h \ |  75     ! -name jpake.c ! -name md2.c ! -name md5.c ! -name logtab.h \ | 
|  75     ! -name mpcpucache.c \ |  76     ! -name mpcpucache.c \ | 
|  76     ! -name mpi-config.h \ |  77     ! -name mpi-config.h \ | 
|  77     ! -name mpi-priv.h ! -name mpi.c ! -name mpi.h \ |  78     ! -name mpi-priv.h ! -name mpi.c ! -name mpi.h \ | 
|  78     ! -name mpi_amd64.c ! -name mpi_x86_asm.c ! -name mplogic.c \ |  79     ! -name mpi_amd64.c ! -name mpi_x86_asm.c ! -name mplogic.c \ | 
|  79     ! -name mplogic.h ! -name mpmontg.c ! -name mpprime.c \ |  80     ! -name mplogic.h ! -name mpmontg.c ! -name mpprime.c \ | 
|  80     ! -name mpprime.h \ |  81     ! -name mpprime.h \ | 
|  81     ! -name mp_gf2m-priv.h ! -name mp_gf2m.c ! -name mp_gf2m.h \ |  82     ! -name mp_gf2m-priv.h ! -name mp_gf2m.c ! -name mp_gf2m.h \ | 
|  82     ! -name primes.c ! -name pqg.c ! -name rawhash.c \ |  83     ! -name primes.c ! -name pqg.c ! -name pqg.h ! -name rawhash.c \ | 
|  83     ! -name rijndael.c ! -name rijndael.h ! -name rijndael32.tab \ |  84     ! -name rijndael.c ! -name rijndael.h ! -name rijndael32.tab \ | 
|  84     ! -name rsa.c ! -name sechash.h ! -name secmpi.h \ |  85     ! -name rsa.c ! -name sechash.h ! -name secmpi.h \ | 
|  85     ! -name secrng.h ! -name seed.c ! -name seed.h \ |  86     ! -name secrng.h ! -name seed.c ! -name seed.h \ | 
|  86     ! -name sha256.h ! -name sha512.c ! -name sha_fast.c \ |  87     ! -name sha256.h ! -name sha512.c ! -name sha_fast.c \ | 
|  87     ! -name sha_fast.h ! -name shsign.h ! -name shvfy.c \ |  88     ! -name sha_fast.h ! -name shsign.h ! -name shvfy.c \ | 
|  88     ! -name sysrand.c ! -name tlsprfalg.c ! -name unix_rand.c \ |  89     ! -name sysrand.c ! -name tlsprfalg.c ! -name unix_rand.c \ | 
|  89     ! -name win_rand.c \ |  90     ! -name win_rand.c \ | 
|  90     | xargs rm |  91     | xargs rm | 
| OLD | NEW |