| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 |
| 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 |
| 5 # found in the LICENSE file. |
| 6 |
| 2 # Script to build valgrind for use with chromium | 7 # Script to build valgrind for use with chromium |
| 3 # | 8 # |
| 4 # 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 |
| 5 # 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. |
| 6 # These are useful when configuring jailed buildbots which are not allowed to | 11 # These are useful when configuring jailed buildbots which are not allowed to |
| 7 # fetch valgrind source via svn. Most users won't need those options. | 12 # fetch valgrind source via svn. Most users won't need those options. |
| 8 | 13 |
| 9 # Checkout by date doesn't work unless you specify the friggin' timezone | 14 # Checkout by date doesn't work unless you specify the friggin' timezone |
| 10 VALGRIND_SVN_REV=10771 | 15 VALGRIND_SVN_REV=10771 |
| 11 # And svn isn't smart enough to figure out what rev of the linked tree to get | 16 # And svn isn't smart enough to figure out what rev of the linked tree to get |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 test -d "${OVERRIDE_LD_DIR}" && rm -rf "${OVERRIDE_LD_DIR}" | 133 test -d "${OVERRIDE_LD_DIR}" && rm -rf "${OVERRIDE_LD_DIR}" |
| 129 | 134 |
| 130 # Don't use sudo if we own the destination | 135 # Don't use sudo if we own the destination |
| 131 if test -w "${parent_of_prefix}" | 136 if test -w "${parent_of_prefix}" |
| 132 then | 137 then |
| 133 make install | 138 make install |
| 134 else | 139 else |
| 135 sudo make install | 140 sudo make install |
| 136 fi | 141 fi |
| 137 fi | 142 fi |
| OLD | NEW |