| 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 # Simple wrapper script to build a cros_workon package incrementally. | 7 # Simple wrapper script to build a cros_workon package incrementally. |
| 8 # You must already be cros_workon'ing the package in question. | 8 # You must already be cros_workon'ing the package in question. |
| 9 | 9 |
| 10 . "$(dirname $0)/../common.sh" | 10 . "$(dirname $0)/../common.sh" |
| 11 | 11 |
| 12 # Script must be run inside the chroot. | 12 # Script must be run inside the chroot. |
| 13 assert_inside_chroot | 13 restart_in_chroot_if_needed "$@" |
| 14 | 14 |
| 15 get_default_board | 15 get_default_board |
| 16 | 16 |
| 17 DEFINE_string board "${DEFAULT_BOARD}" \ | 17 DEFINE_string board "${DEFAULT_BOARD}" \ |
| 18 "Board for which to build the package." | 18 "Board for which to build the package." |
| 19 DEFINE_boolean test "${FLAGS_FALSE}" \ | 19 DEFINE_boolean test "${FLAGS_FALSE}" \ |
| 20 "Compile and run tests as well." | 20 "Compile and run tests as well." |
| 21 DEFINE_boolean reconf "${FLAGS_FALSE}" \ | 21 DEFINE_boolean reconf "${FLAGS_FALSE}" \ |
| 22 "Re-run configure and prepare steps." | 22 "Re-run configure and prepare steps." |
| 23 DEFINE_boolean install "${FLAGS_FALSE}" \ | 23 DEFINE_boolean install "${FLAGS_FALSE}" \ |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 fi | 90 fi |
| 91 | 91 |
| 92 clean= | 92 clean= |
| 93 if [ "${FLAGS_reconf}" = "${FLAGS_TRUE}" ]; then | 93 if [ "${FLAGS_reconf}" = "${FLAGS_TRUE}" ]; then |
| 94 clean="clean" | 94 clean="clean" |
| 95 else | 95 else |
| 96 rm -f "/build/${BOARD_STR}/tmp/portage/${workpath}/.compiled" | 96 rm -f "/build/${BOARD_STR}/tmp/portage/${workpath}/.compiled" |
| 97 fi | 97 fi |
| 98 SANDBOX_WRITE=~/trunk CROS_WORKON_INPLACE=1 \ | 98 SANDBOX_WRITE=~/trunk CROS_WORKON_INPLACE=1 \ |
| 99 "${EBUILDCMD}" "${pkgfile}" ${clean} "${to_do}" | 99 "${EBUILDCMD}" "${pkgfile}" ${clean} "${to_do}" |
| OLD | NEW |