| 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" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 echo "${pkgfile}" | \ | 78 echo "${pkgfile}" | \ |
| 79 awk -F '/' '{ print $(NF-2) "/" $(NF-1) }')-"${unstable_suffix}" | 79 awk -F '/' '{ print $(NF-2) "/" $(NF-1) }')-"${unstable_suffix}" |
| 80 | 80 |
| 81 emerge_features= | 81 emerge_features= |
| 82 to_do="compile" | 82 to_do="compile" |
| 83 if [ "${FLAGS_test}" = "${FLAGS_TRUE}" ]; then | 83 if [ "${FLAGS_test}" = "${FLAGS_TRUE}" ]; then |
| 84 to_do="test" | 84 to_do="test" |
| 85 emerge_features="test" | 85 emerge_features="test" |
| 86 fi | 86 fi |
| 87 if [ "${FLAGS_install}" = "${FLAGS_TRUE}" ]; then | 87 if [ "${FLAGS_install}" = "${FLAGS_TRUE}" ]; then |
| 88 FEATURES="${emerge_features}" "${EMERGECMD}" "${1}" | 88 SANDBOX_WRITE=~/trunk CROS_WORKON_INPLACE=1 \ |
| 89 FEATURES="${emerge_features} ${FEATURES}" "${EMERGECMD}" "${1}" |
| 89 exit $? | 90 exit $? |
| 90 fi | 91 fi |
| 91 | 92 |
| 92 clean= | 93 clean= |
| 93 if [ "${FLAGS_reconf}" = "${FLAGS_TRUE}" ]; then | 94 if [ "${FLAGS_reconf}" = "${FLAGS_TRUE}" ]; then |
| 94 clean="clean" | 95 clean="clean" |
| 95 else | 96 else |
| 96 rm -f "/build/${BOARD_STR}/tmp/portage/${workpath}/.compiled" | 97 rm -f "/build/${BOARD_STR}/tmp/portage/${workpath}/.compiled" |
| 97 fi | 98 fi |
| 98 SANDBOX_WRITE=~/trunk CROS_WORKON_INPLACE=1 \ | 99 SANDBOX_WRITE=~/trunk CROS_WORKON_INPLACE=1 \ |
| 99 "${EBUILDCMD}" "${pkgfile}" ${clean} "${to_do}" | 100 "${EBUILDCMD}" "${pkgfile}" ${clean} "${to_do}" |
| OLD | NEW |