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 . /usr/lib/crosutils/common.sh || (echo "Unable to load common.sh" && exit 1) | 10 . /usr/lib/crosutils/common.sh || exit 1 |
11 | 11 |
12 get_default_board | 12 get_default_board |
13 | 13 |
14 DEFINE_string board "${DEFAULT_BOARD}" \ | 14 DEFINE_string board "${DEFAULT_BOARD}" \ |
15 "Board for which to build the package." | 15 "Board for which to build the package." |
16 DEFINE_boolean test "${FLAGS_FALSE}" \ | 16 DEFINE_boolean test "${FLAGS_FALSE}" \ |
17 "Compile and run tests as well." | 17 "Compile and run tests as well." |
18 DEFINE_boolean reconf "${FLAGS_FALSE}" \ | 18 DEFINE_boolean reconf "${FLAGS_FALSE}" \ |
19 "Re-run configure and prepare steps." | 19 "Re-run configure and prepare steps." |
20 DEFINE_boolean install "${FLAGS_FALSE}" \ | 20 DEFINE_boolean install "${FLAGS_FALSE}" \ |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 fi | 88 fi |
89 | 89 |
90 clean= | 90 clean= |
91 if [ "${FLAGS_reconf}" = "${FLAGS_TRUE}" ]; then | 91 if [ "${FLAGS_reconf}" = "${FLAGS_TRUE}" ]; then |
92 clean="clean" | 92 clean="clean" |
93 else | 93 else |
94 rm -f "/build/${BOARD_STR}/tmp/portage/${workpath}/.compiled" | 94 rm -f "/build/${BOARD_STR}/tmp/portage/${workpath}/.compiled" |
95 fi | 95 fi |
96 SANDBOX_WRITE=~/trunk CROS_WORKON_INPLACE=1 \ | 96 SANDBOX_WRITE=~/trunk CROS_WORKON_INPLACE=1 \ |
97 "${EBUILDCMD}" "${pkgfile}" ${clean} "${to_do}" | 97 "${EBUILDCMD}" "${pkgfile}" ${clean} "${to_do}" |
OLD | NEW |