| OLD | NEW | 
|---|
| 1 #!/bin/sh | 1 #!/bin/sh | 
| 2 | 2 | 
| 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be | 
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. | 
| 6 | 6 | 
| 7 # Script to build valgrind for use with chromium | 7 # Script to build valgrind for use with chromium | 
| 8 # | 8 # | 
| 9 # Can also be used to just prepare patched source tarball with MAKE_TARBALL=yes | 9 # Can also be used to just prepare patched source tarball with MAKE_TARBALL=yes | 
| 10 # or to just build from a patched source tarball with USE_TARBALL=yes. | 10 # or to just build from a patched source tarball with USE_TARBALL=yes. | 
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 74     # Add ThreadSanitier to the installation. | 74     # Add ThreadSanitier to the installation. | 
| 75     # ThreadSanitizer is an experimental dynamic data race detector. | 75     # ThreadSanitizer is an experimental dynamic data race detector. | 
| 76     # See http://code.google.com/p/data-race-test/wiki/ThreadSanitizer | 76     # See http://code.google.com/p/data-race-test/wiki/ThreadSanitizer | 
| 77     svn checkout -r "${TSAN_SVN_REV}" http://data-race-test.googlecode.com/svn/t
     runk/tsan tsan | 77     svn checkout -r "${TSAN_SVN_REV}" http://data-race-test.googlecode.com/svn/t
     runk/tsan tsan | 
| 78     mkdir tsan/tests | 78     mkdir tsan/tests | 
| 79     touch tsan/tests/Makefile.am | 79     touch tsan/tests/Makefile.am | 
| 80     patch -p 0 < tsan/valgrind.patch | 80     patch -p 0 < tsan/valgrind.patch | 
| 81   fi | 81   fi | 
| 82 | 82 | 
| 83   sh autogen.sh | 83   sh autogen.sh | 
|  | 84   if test -L install-sh | 
|  | 85   then | 
|  | 86     # replace symlink with actual contents! | 
|  | 87     cp install-sh install-sh.new | 
|  | 88     mv install-sh.new install-sh | 
|  | 89     chmod +x install-sh | 
|  | 90   fi | 
| 84 | 91 | 
| 85   # MacOSX before Snow Leopoard needs newer gdb to be able to handle -O1 chrome | 92   # MacOSX before Snow Leopoard needs newer gdb to be able to handle -O1 chrome | 
| 86   # Kludgily download and unpack the sources in a subdirectory. | 93   # Kludgily download and unpack the sources in a subdirectory. | 
| 87   if test `uname` = Darwin || test "x${MAKE_TARBALL}" = "xyes" | 94   if test `uname` = Darwin || test "x${MAKE_TARBALL}" = "xyes" | 
| 88   then | 95   then | 
| 89     curl http://www.opensource.apple.com/tarballs/gdb/gdb-1344.tar.gz | tar -xzf
      - | 96     curl http://www.opensource.apple.com/tarballs/gdb/gdb-1344.tar.gz | tar -xzf
      - | 
| 90   fi | 97   fi | 
| 91   cd .. | 98   cd .. | 
| 92 | 99 | 
| 93 fi | 100 fi | 
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 161     if test -w "${parent_of_prefix}" | 168     if test -w "${parent_of_prefix}" | 
| 162     then | 169     then | 
| 163        make install | 170        make install | 
| 164     else | 171     else | 
| 165        sudo make install | 172        sudo make install | 
| 166     fi | 173     fi | 
| 167     ;; | 174     ;; | 
| 168   esac | 175   esac | 
| 169   cd .. | 176   cd .. | 
| 170 fi | 177 fi | 
| OLD | NEW | 
|---|