OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2010 The Chromium OS 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 # Start the Dev Server after making sure we are running under a chroot. | 7 # Start the Dev Server after making sure we are running under a chroot. |
8 | 8 |
9 COMMON_SH="$(dirname "$0")/common.sh" | 9 COMMON_SH="$(dirname "$0")/common.sh" |
10 . "$COMMON_SH" | 10 . "$COMMON_SH" |
11 | 11 |
12 # Script must be run inside the chroot if not in 'always serve' mode. | 12 # Script must be run inside the chroot if not in 'always serve' mode. |
13 if [[ "$1" != "-a" ]] | 13 if [[ "$1" != "--archive_dir" ]] |
14 then | 14 then |
15 restart_in_chroot_if_needed $* | 15 restart_in_chroot_if_needed $* |
16 fi | 16 fi |
17 | 17 |
18 cd ${GCLIENT_ROOT}/src/platform/dev && python devserver.py $* | 18 cd ${GCLIENT_ROOT}/src/platform/dev && python devserver.py $* |
OLD | NEW |