| 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 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 -e | 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 -D 2010-01-19 NSPR | 14 -r NSPR_4_8_4_BETA1 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/msgc | 19 rm -r mozilla/nsprpub/lib/msgc |
| 20 rm -r mozilla/nsprpub/lib/prstreams | 20 rm -r mozilla/nsprpub/lib/prstreams |
| 21 rm -r mozilla/nsprpub/lib/tests | 21 rm -r mozilla/nsprpub/lib/tests |
| 22 rm -r mozilla/nsprpub/pkg | 22 rm -r mozilla/nsprpub/pkg |
| 23 rm -r mozilla/nsprpub/pr/src/cplus | 23 rm -r mozilla/nsprpub/pr/src/cplus |
| 24 rm -r mozilla/nsprpub/pr/tests | 24 rm -r mozilla/nsprpub/pr/tests |
| 25 rm -r mozilla/nsprpub/tools | 25 rm -r mozilla/nsprpub/tools |
| 26 | 26 |
| 27 # Remove unneeded platform-specific directories. | 27 # Remove unneeded platform-specific directories. |
| 28 rm -r mozilla/nsprpub/pr/src/bthreads | 28 rm -r mozilla/nsprpub/pr/src/bthreads |
| 29 rm -r mozilla/nsprpub/pr/src/md/beos | 29 rm -r mozilla/nsprpub/pr/src/md/beos |
| 30 rm -r mozilla/nsprpub/pr/src/md/os2 | 30 rm -r mozilla/nsprpub/pr/src/md/os2 |
| 31 | 31 |
| 32 find mozilla/nsprpub -name .cvsignore -print | xargs rm | 32 find mozilla/nsprpub -name .cvsignore -print | xargs rm |
| 33 find mozilla/nsprpub -name README -print | xargs rm | 33 find mozilla/nsprpub -name README -print | xargs rm |
| 34 | 34 |
| 35 # Remove the build system. | 35 # Remove the build system. |
| 36 rm mozilla/nsprpub/configure | 36 rm mozilla/nsprpub/configure |
| 37 rm mozilla/nsprpub/configure.in | 37 rm mozilla/nsprpub/configure.in |
| 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 MANIFEST -print | xargs rm | |
| 40 find mozilla/nsprpub -name "*.mk" -print | xargs rm | 39 find mozilla/nsprpub -name "*.mk" -print | xargs rm |
| 41 | 40 |
| 42 # Remove files for building shared libraries/DLLs. | 41 # Remove files for building shared libraries/DLLs. |
| 43 find mozilla/nsprpub -name "*.def" -print | xargs rm | 42 find mozilla/nsprpub -name "*.def" -print | xargs rm |
| 44 find mozilla/nsprpub -name "*.rc" -print | xargs rm | 43 find mozilla/nsprpub -name "*.rc" -print | xargs rm |
| 45 find mozilla/nsprpub -name prvrsion.c -print | xargs rm | 44 find mozilla/nsprpub -name prvrsion.c -print | xargs rm |
| 46 find mozilla/nsprpub -name plvrsion.c -print | xargs rm | 45 find mozilla/nsprpub -name plvrsion.c -print | xargs rm |
| 47 | 46 |
| 48 # Remove unneeded platform-specific files in mozilla/nsprpub/pr/include/md. | 47 # Remove unneeded platform-specific files in mozilla/nsprpub/pr/include/md. |
| 49 rm mozilla/nsprpub/pr/include/md/sunos4.h | 48 rm mozilla/nsprpub/pr/include/md/sunos4.h |
| 50 find mozilla/nsprpub/pr/include/md -name "_*" ! -name "_darwin.*" \ | 49 find mozilla/nsprpub/pr/include/md -name "_*" ! -name "_darwin.*" \ |
| 51 ! -name "_win95.*" ! -name _pth.h ! -name _pcos.h ! -name _unixos.h \ | 50 ! -name "_win95.*" ! -name _pth.h ! -name _pcos.h ! -name _unixos.h \ |
| 52 ! -name _unix_errors.h ! -name _win32_errors.h -print \ | 51 ! -name _unix_errors.h ! -name _win32_errors.h -print \ |
| 53 | xargs rm | 52 | xargs rm |
| 54 | 53 |
| 55 # Remove files for unneeded Unix flavors. | 54 # Remove files for unneeded Unix flavors. |
| 56 find mozilla/nsprpub/pr/src/md/unix -type f ! -name "ux*.c" ! -name unix.c \ | 55 find mozilla/nsprpub/pr/src/md/unix -type f ! -name "ux*.c" ! -name unix.c \ |
| 57 ! -name unix_errors.c ! -name darwin.c ! -name "os_Darwin*.s" -print \ | 56 ! -name unix_errors.c ! -name darwin.c ! -name "os_Darwin*.s" -print \ |
| 58 | xargs rm | 57 | xargs rm |
| 59 | 58 |
| 60 # Remove files for the WINNT build configuration. | 59 # Remove files for the WINNT build configuration. |
| 61 rm mozilla/nsprpub/pr/src/md/windows/ntdllmn.c | 60 rm mozilla/nsprpub/pr/src/md/windows/ntdllmn.c |
| 62 rm mozilla/nsprpub/pr/src/md/windows/ntio.c | 61 rm mozilla/nsprpub/pr/src/md/windows/ntio.c |
| 63 rm mozilla/nsprpub/pr/src/md/windows/ntthread.c | 62 rm mozilla/nsprpub/pr/src/md/windows/ntthread.c |
| 64 | 63 |
| 65 # Remove obsolete files or files we don't need. | 64 # Remove obsolete files or files we don't need. |
| 66 rm mozilla/nsprpub/lib/libc/include/plresolv.h | |
| 67 rm mozilla/nsprpub/pr/include/gencfg.c | 65 rm mozilla/nsprpub/pr/include/gencfg.c |
| 68 rm mozilla/nsprpub/pr/src/memory/prgcleak.c | 66 rm mozilla/nsprpub/pr/src/memory/prgcleak.c |
| 69 rm mozilla/nsprpub/pr/src/misc/compile-et.pl | 67 rm mozilla/nsprpub/pr/src/misc/compile-et.pl |
| 70 rm mozilla/nsprpub/pr/src/misc/dtoa.c | 68 rm mozilla/nsprpub/pr/src/misc/dtoa.c |
| 71 rm mozilla/nsprpub/pr/src/misc/prerr.et | 69 rm mozilla/nsprpub/pr/src/misc/prerr.et |
| 72 rm mozilla/nsprpub/pr/src/misc/prerr.properties | 70 rm mozilla/nsprpub/pr/src/misc/prerr.properties |
| OLD | NEW |