OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 NSPR source tree from CVS and prepares | 6 # This shell script checks out the NSPR 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/nsprpub | 12 rm -rf mozilla/nsprpub |
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 NSPR_4_9_RTM NSPR | 14 -r NSPR_4_9_5_BETA2 NSPR |
15 | 15 |
16 rm -r mozilla/nsprpub/admin | 16 rm -r mozilla/nsprpub/admin |
17 rm -r mozilla/nsprpub/build | 17 rm -r mozilla/nsprpub/build |
18 rm -r mozilla/nsprpub/config | 18 rm -r mozilla/nsprpub/config |
19 rm -r mozilla/nsprpub/lib/prstreams | 19 rm -r mozilla/nsprpub/lib/prstreams |
20 rm -r mozilla/nsprpub/lib/tests | 20 rm -r mozilla/nsprpub/lib/tests |
21 rm -r mozilla/nsprpub/pkg | 21 rm -r mozilla/nsprpub/pkg |
22 rm -r mozilla/nsprpub/pr/src/cplus | 22 rm -r mozilla/nsprpub/pr/src/cplus |
23 rm -r mozilla/nsprpub/pr/tests | 23 rm -r mozilla/nsprpub/pr/tests |
24 rm -r mozilla/nsprpub/tools | 24 rm -r mozilla/nsprpub/tools |
(...skipping 13 matching lines...) Expand all Loading... |
38 find mozilla/nsprpub -name Makefile.in -print | xargs rm | 38 find mozilla/nsprpub -name Makefile.in -print | xargs rm |
39 find mozilla/nsprpub -name "*.mk" -print | xargs rm | 39 find mozilla/nsprpub -name "*.mk" -print | xargs rm |
40 | 40 |
41 # Remove files for building shared libraries/DLLs. | 41 # Remove files for building shared libraries/DLLs. |
42 find mozilla/nsprpub -name "*.def" -print | xargs rm | 42 find mozilla/nsprpub -name "*.def" -print | xargs rm |
43 find mozilla/nsprpub -name "*.rc" -print | xargs rm | 43 find mozilla/nsprpub -name "*.rc" -print | xargs rm |
44 find mozilla/nsprpub -name prvrsion.c -print | xargs rm | 44 find mozilla/nsprpub -name prvrsion.c -print | xargs rm |
45 find mozilla/nsprpub -name plvrsion.c -print | xargs rm | 45 find mozilla/nsprpub -name plvrsion.c -print | xargs rm |
46 | 46 |
47 # Remove unneeded platform-specific files in mozilla/nsprpub/pr/include/md. | 47 # Remove unneeded platform-specific files in mozilla/nsprpub/pr/include/md. |
48 rm mozilla/nsprpub/pr/include/md/sunos4.h | |
49 find mozilla/nsprpub/pr/include/md -name "_*" ! -name "_darwin.*" \ | 48 find mozilla/nsprpub/pr/include/md -name "_*" ! -name "_darwin.*" \ |
50 ! -name "_linux.*" ! -name "_win95.*" ! -name _pth.h ! -name _pcos.h \ | 49 ! -name "_linux.*" ! -name "_win95.*" ! -name _pth.h ! -name _pcos.h \ |
51 ! -name _unixos.h ! -name _unix_errors.h ! -name _win32_errors.h -print \ | 50 ! -name _unixos.h ! -name _unix_errors.h ! -name _win32_errors.h -print \ |
52 | xargs rm | 51 | xargs rm |
53 | 52 |
54 # Remove files for unneeded Unix flavors. | 53 # Remove files for unneeded Unix flavors. |
55 find mozilla/nsprpub/pr/src/md/unix -type f ! -name "ux*.c" ! -name unix.c \ | 54 find mozilla/nsprpub/pr/src/md/unix -type f ! -name "ux*.c" ! -name unix.c \ |
56 ! -name unix_errors.c ! -name darwin.c ! -name "os_Darwin*.s" \ | 55 ! -name unix_errors.c ! -name darwin.c ! -name "os_Darwin*.s" \ |
57 ! -name linux.c ! -name "os_Linux*.s" -print \ | 56 ! -name linux.c ! -name "os_Linux*.s" -print \ |
58 | xargs rm | 57 | xargs rm |
59 rm mozilla/nsprpub/pr/src/md/unix/os_Darwin_ppc.s | 58 rm mozilla/nsprpub/pr/src/md/unix/os_Darwin_ppc.s |
60 rm mozilla/nsprpub/pr/src/md/unix/os_Linux_ppc.s | 59 rm mozilla/nsprpub/pr/src/md/unix/os_Linux_ppc.s |
61 rm mozilla/nsprpub/pr/src/md/unix/os_Linux_ia64.s | 60 rm mozilla/nsprpub/pr/src/md/unix/os_Linux_ia64.s |
62 rm mozilla/nsprpub/pr/src/md/unix/uxpoll.c | 61 rm mozilla/nsprpub/pr/src/md/unix/uxpoll.c |
63 | 62 |
64 # Remove files for the WINNT build configuration. | 63 # Remove files for the WINNT build configuration. |
65 rm mozilla/nsprpub/pr/src/md/windows/ntdllmn.c | 64 rm mozilla/nsprpub/pr/src/md/windows/ntdllmn.c |
66 rm mozilla/nsprpub/pr/src/md/windows/ntio.c | 65 rm mozilla/nsprpub/pr/src/md/windows/ntio.c |
67 rm mozilla/nsprpub/pr/src/md/windows/ntthread.c | 66 rm mozilla/nsprpub/pr/src/md/windows/ntthread.c |
68 | 67 |
69 # Remove obsolete files or files we don't need. | 68 # Remove obsolete files or files we don't need. |
70 rm mozilla/nsprpub/pr/include/gencfg.c | 69 rm mozilla/nsprpub/pr/include/gencfg.c |
71 rm mozilla/nsprpub/pr/src/misc/compile-et.pl | 70 rm mozilla/nsprpub/pr/src/misc/compile-et.pl |
72 rm mozilla/nsprpub/pr/src/misc/dtoa.c | 71 rm mozilla/nsprpub/pr/src/misc/dtoa.c |
73 rm mozilla/nsprpub/pr/src/misc/prerr.et | 72 rm mozilla/nsprpub/pr/src/misc/prerr.et |
74 rm mozilla/nsprpub/pr/src/misc/prerr.properties | 73 rm mozilla/nsprpub/pr/src/misc/prerr.properties |
OLD | NEW |