| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 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 a simple script to make building/testing Mojo components easier (on | 6 # This a simple script to make building/testing Mojo components easier (on |
| 7 # Linux). | 7 # Linux). |
| 8 | 8 |
| 9 # TODO(vtl): Maybe make the test runner smart and not run unchanged test | 9 # TODO(vtl): Maybe make the test runner smart and not run unchanged test |
| 10 # binaries. | 10 # binaries. |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 should_do_Release && do_unittests Release | 126 should_do_Release && do_unittests Release |
| 127 ;; | 127 ;; |
| 128 perftest) | 128 perftest) |
| 129 should_do_Debug && do_perftests Debug | 129 should_do_Debug && do_perftests Debug |
| 130 should_do_Release && do_perftests Release | 130 should_do_Release && do_perftests Release |
| 131 ;; | 131 ;; |
| 132 gyp) | 132 gyp) |
| 133 do_gyp | 133 do_gyp |
| 134 ;; | 134 ;; |
| 135 sync) | 135 sync) |
| 136 # Note: sync only, no gyp-ing. | 136 # Note: sync only (with hooks, but no gyp-ing). |
| 137 gclient sync --nohooks | 137 GYP_CHROMIUM_NO_ACTION=1 gclient sync |
| 138 ;; | 138 ;; |
| 139 show-bash-alias) | 139 show-bash-alias) |
| 140 # You want to type something like: | 140 # You want to type something like: |
| 141 # alias mojob=\ | 141 # alias mojob=\ |
| 142 # '"$(pwd | sed '"'"'s/\(.*\/src\).*/\1/'"'"')/mojo/tools/mojob.sh"' | 142 # '"$(pwd | sed '"'"'s/\(.*\/src\).*/\1/'"'"')/mojo/tools/mojob.sh"' |
| 143 # This is quoting hell, so we simply escape every non-alphanumeric | 143 # This is quoting hell, so we simply escape every non-alphanumeric |
| 144 # character. | 144 # character. |
| 145 echo alias\ mojob\=\'\"\$\(pwd\ \|\ sed\ \'\"\'\"\'s\/\\\(\.\*\\\/src\\\)\ | 145 echo alias\ mojob\=\'\"\$\(pwd\ \|\ sed\ \'\"\'\"\'s\/\\\(\.\*\\\/src\\\)\ |
| 146 \.\*\/\\1\/\'\"\'\"\'\)\/mojo\/tools\/mojob\.sh\"\' | 146 \.\*\/\\1\/\'\"\'\"\'\)\/mojo\/tools\/mojob\.sh\"\' |
| 147 ;; | 147 ;; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 166 ;; | 166 ;; |
| 167 --static) | 167 --static) |
| 168 COMPONENT=static | 168 COMPONENT=static |
| 169 ;; | 169 ;; |
| 170 *) | 170 *) |
| 171 echo "Unknown command \"${arg}\". Try \"$(basename "$0") help\"." | 171 echo "Unknown command \"${arg}\". Try \"$(basename "$0") help\"." |
| 172 exit 1 | 172 exit 1 |
| 173 ;; | 173 ;; |
| 174 esac | 174 esac |
| 175 done | 175 done |
| OLD | NEW |