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

Side by Side Diff: bin/cros_workon_make

Issue 5444002: restart_in_chroot_if_needed can run scripts from bin/. cros_workon_now does this (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/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 | common.sh » ('j') | common.sh » ('J')
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"
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
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}"
OLDNEW
« no previous file with comments | « no previous file | common.sh » ('j') | common.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698