OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 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 # Running Chromium via this script makes it possible to set Chromium as the | 7 # Running Chromium via this script makes it possible to set Chromium as the |
8 # default browser directly out of a compile, without needing to package it. | 8 # default browser directly out of a compile, without needing to package it. |
9 | 9 |
10 DESKTOP="chromium-devel" | 10 DESKTOP="chromium-devel" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 exists_desktop_file || generate_desktop_file | 140 exists_desktop_file || generate_desktop_file |
141 | 141 |
142 CMD_PREFIX= | 142 CMD_PREFIX= |
143 ARGS=() | 143 ARGS=() |
144 while [ "$#" -gt 0 ]; do | 144 while [ "$#" -gt 0 ]; do |
145 case "$1" in | 145 case "$1" in |
146 "--") | 146 "--") |
147 shift | 147 shift |
148 break ;; | 148 break ;; |
149 "--gdb") | 149 "--gdb") |
150 CMD_PREFIX="gdb --args" ;; | 150 CMD_PREFIX="gdbtui --args" ;; |
151 "--help") | 151 "--help") |
152 usage | 152 usage |
153 exit 0 ;; | 153 exit 0 ;; |
154 "--man-page") | 154 "--man-page") |
155 exec man "$HERE/../../chrome/app/resources/manpage.1.in" ;; | 155 exec man "$HERE/../../chrome/app/resources/manpage.1.in" ;; |
156 *) | 156 *) |
157 ARGS=( "${ARGS[@]}" "$1" ) ;; | 157 ARGS=( "${ARGS[@]}" "$1" ) ;; |
158 esac | 158 esac |
159 shift | 159 shift |
160 done | 160 done |
161 set -- "${ARGS[@]}" "$@" | 161 set -- "${ARGS[@]}" "$@" |
162 | 162 |
163 exec $CMD_PREFIX "$HERE/chrome" "$@" | 163 exec $CMD_PREFIX "$HERE/chrome" "$@" |
OLD | NEW |