Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Side by Side Diff: scripts/nspr-checkout.sh

Issue 2078763002: Delete bundled copy of NSS and replace with README. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/nss@master
Patch Set: Delete bundled copy of NSS and replace with README. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « patches/prcpucfg.h ('k') | scripts/nss-checkout.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/sh
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
4 # found in the LICENSE file.
5
6 # This shell script checks out the NSPR source tree from HG and prepares
7 # it for Chromium.
8
9 # Make the script exit as soon as something fails.
10 set -ex
11
12 rm -rf nspr
13 hg clone -u NSPR_4_12_RTM https://hg.mozilla.org/projects/nspr
14
15 rm -r nspr/.hg
16 rm -r nspr/admin
17 rm -r nspr/build
18 rm -r nspr/config
19 rm -r nspr/lib/prstreams
20 rm -r nspr/lib/tests
21 rm -r nspr/pkg
22 rm -r nspr/pr/src/cplus
23 rm -r nspr/pr/tests
24 rm -r nspr/tools
25
26 # Remove unneeded platform-specific directories.
27 rm -r nspr/pr/src/bthreads
28 rm -r nspr/pr/src/md/beos
29 rm -r nspr/pr/src/md/os2
30
31 find nspr -name .cvsignore -print | xargs rm
32 rm nspr/.hgignore
33 rm nspr/.hgtags
34 find nspr -name README -print | xargs rm
35
36 # Remove the build system.
37 rm nspr/configure
38 rm nspr/configure.in
39 find nspr -name Makefile.in -print | xargs rm
40 find nspr -name "*.mk" -print | xargs rm
41
42 # Remove files for building shared libraries/DLLs.
43 find nspr -name "*.def" -print | xargs rm
44 find nspr -name "*.rc" -print | xargs rm
45 find nspr -name prvrsion.c -print | xargs rm
46 find nspr -name plvrsion.c -print | xargs rm
47
48 # Remove unneeded platform-specific files in nspr/pr/include/md.
49 find nspr/pr/include/md -name "_*" ! -name "_darwin.*" \
50 ! -name "_linux.*" ! -name "_win95.*" ! -name _pth.h ! -name _pcos.h \
51 ! -name _unixos.h ! -name _unix_errors.h ! -name _win32_errors.h -print \
52 | xargs rm
53
54 # Remove files for unneeded Unix flavors.
55 find nspr/pr/src/md/unix -type f ! -name "ux*.c" ! -name unix.c \
56 ! -name unix_errors.c ! -name darwin.c ! -name "os_Darwin*.s" \
57 ! -name linux.c ! -name "os_Linux*.s" -print \
58 | xargs rm
59 rm nspr/pr/src/md/unix/os_Darwin_ppc.s
60 rm nspr/pr/src/md/unix/os_Linux_ppc.s
61 rm nspr/pr/src/md/unix/os_Linux_ia64.s
62 rm nspr/pr/src/md/unix/uxpoll.c
63
64 # Remove files for the WINNT build configuration.
65 rm nspr/pr/src/md/windows/ntdllmn.c
66 rm nspr/pr/src/md/windows/ntio.c
67 rm nspr/pr/src/md/windows/ntthread.c
68
69 # Remove obsolete files or files we don't need.
70 rm nspr/pr/include/gencfg.c
71 rm nspr/pr/src/misc/compile-et.pl
72 rm nspr/pr/src/misc/dtoa.c
73 rm nspr/pr/src/misc/prerr.et
74 rm nspr/pr/src/misc/prerr.properties
OLDNEW
« no previous file with comments | « patches/prcpucfg.h ('k') | scripts/nss-checkout.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698