| 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 nspr | 12 rm -rf nspr |
| 13 hg clone -u NSPR_4_10_4_RTM https://hg.mozilla.org/projects/nspr | 13 hg clone -u NSPR_4_10_7_BETA3 https://hg.mozilla.org/projects/nspr |
| 14 | 14 |
| 15 rm -r nspr/.hg |
| 15 rm -r nspr/admin | 16 rm -r nspr/admin |
| 16 rm -r nspr/build | 17 rm -r nspr/build |
| 17 rm -r nspr/config | 18 rm -r nspr/config |
| 18 rm -r nspr/lib/prstreams | 19 rm -r nspr/lib/prstreams |
| 19 rm -r nspr/lib/tests | 20 rm -r nspr/lib/tests |
| 20 rm -r nspr/pkg | 21 rm -r nspr/pkg |
| 21 rm -r nspr/pr/src/cplus | 22 rm -r nspr/pr/src/cplus |
| 22 rm -r nspr/pr/tests | 23 rm -r nspr/pr/tests |
| 23 rm -r nspr/tools | 24 rm -r nspr/tools |
| 24 | 25 |
| 25 # Remove unneeded platform-specific directories. | 26 # Remove unneeded platform-specific directories. |
| 26 rm -r nspr/pr/src/bthreads | 27 rm -r nspr/pr/src/bthreads |
| 27 rm -r nspr/pr/src/md/beos | 28 rm -r nspr/pr/src/md/beos |
| 28 rm -r nspr/pr/src/md/os2 | 29 rm -r nspr/pr/src/md/os2 |
| 29 | 30 |
| 30 find nspr -name .cvsignore -print | xargs rm | 31 find nspr -name .cvsignore -print | xargs rm |
| 32 rm nspr/.hgignore |
| 33 rm nspr/.hgtags |
| 31 find nspr -name README -print | xargs rm | 34 find nspr -name README -print | xargs rm |
| 32 | 35 |
| 33 # Remove the build system. | 36 # Remove the build system. |
| 34 rm nspr/aclocal.m4 | |
| 35 rm nspr/configure | 37 rm nspr/configure |
| 36 rm nspr/configure.in | 38 rm nspr/configure.in |
| 37 find nspr -name Makefile.in -print | xargs rm | 39 find nspr -name Makefile.in -print | xargs rm |
| 38 find nspr -name "*.mk" -print | xargs rm | 40 find nspr -name "*.mk" -print | xargs rm |
| 39 | 41 |
| 40 # Remove files for building shared libraries/DLLs. | 42 # Remove files for building shared libraries/DLLs. |
| 41 find nspr -name "*.def" -print | xargs rm | 43 find nspr -name "*.def" -print | xargs rm |
| 42 find nspr -name "*.rc" -print | xargs rm | 44 find nspr -name "*.rc" -print | xargs rm |
| 43 find nspr -name prvrsion.c -print | xargs rm | 45 find nspr -name prvrsion.c -print | xargs rm |
| 44 find nspr -name plvrsion.c -print | xargs rm | 46 find nspr -name plvrsion.c -print | xargs rm |
| (...skipping 18 matching lines...) Expand all Loading... |
| 63 rm nspr/pr/src/md/windows/ntdllmn.c | 65 rm nspr/pr/src/md/windows/ntdllmn.c |
| 64 rm nspr/pr/src/md/windows/ntio.c | 66 rm nspr/pr/src/md/windows/ntio.c |
| 65 rm nspr/pr/src/md/windows/ntthread.c | 67 rm nspr/pr/src/md/windows/ntthread.c |
| 66 | 68 |
| 67 # Remove obsolete files or files we don't need. | 69 # Remove obsolete files or files we don't need. |
| 68 rm nspr/pr/include/gencfg.c | 70 rm nspr/pr/include/gencfg.c |
| 69 rm nspr/pr/src/misc/compile-et.pl | 71 rm nspr/pr/src/misc/compile-et.pl |
| 70 rm nspr/pr/src/misc/dtoa.c | 72 rm nspr/pr/src/misc/dtoa.c |
| 71 rm nspr/pr/src/misc/prerr.et | 73 rm nspr/pr/src/misc/prerr.et |
| 72 rm nspr/pr/src/misc/prerr.properties | 74 rm nspr/pr/src/misc/prerr.properties |
| OLD | NEW |