Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(684)

Side by Side Diff: bin/cros_workon_make

Issue 5530004: cros_workon_place: actually inplace when doing an install (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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}"
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698