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

Side by Side Diff: host/cros_workon

Issue 6726039: cros_workon: fix common.sh check (Closed) Base URL: http://git.chromium.org/git/dev-util.git@master
Patch Set: Created 9 years, 9 months 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 | host/cros_workon_make » ('j') | 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 # This script moves ebuilds between 'stable' and 'live' states. 7 # This script moves ebuilds between 'stable' and 'live' states.
8 # By default 'stable' ebuilds point at and build from source at the 8 # By default 'stable' ebuilds point at and build from source at the
9 # last known good commit. Moving an ebuild to 'live' (via cros_workon start) 9 # last known good commit. Moving an ebuild to 'live' (via cros_workon start)
10 # is intended to support development. The current source tip is fetched, 10 # is intended to support development. The current source tip is fetched,
11 # source modified and built using the unstable 'live' (9999) ebuild. 11 # source modified and built using the unstable 'live' (9999) ebuild.
12 12
13 . /usr/lib/crosutils/common.sh || (echo "Unable to load common.sh" && exit 1) 13 . /usr/lib/crosutils/common.sh || exit 1
14 14
15 # Script must be run inside the chroot 15 # Script must be run inside the chroot
16 get_default_board 16 get_default_board
17 17
18 DEFINE_string board "${DEFAULT_BOARD}" \ 18 DEFINE_string board "${DEFAULT_BOARD}" \
19 "The board to set package keywords for." 19 "The board to set package keywords for."
20 DEFINE_boolean host "${FLAGS_FALSE}" \ 20 DEFINE_boolean host "${FLAGS_FALSE}" \
21 "Uses the host instead of board" 21 "Uses the host instead of board"
22 DEFINE_string command "git status" \ 22 DEFINE_string command "git status" \
23 "The command to be run by forall." 23 "The command to be run by forall."
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 273
274 case ${WORKON_CMD} in 274 case ${WORKON_CMD} in
275 start) ebuild_to_live "${ATOM_LIST}" ;; 275 start) ebuild_to_live "${ATOM_LIST}" ;;
276 stop) ebuild_to_stable "${ATOM_LIST}" ;; 276 stop) ebuild_to_stable "${ATOM_LIST}" ;;
277 list) [ ${FLAGS_all} = "${FLAGS_FALSE}" ] && show_live_ebuilds || \ 277 list) [ ${FLAGS_all} = "${FLAGS_FALSE}" ] && show_live_ebuilds || \
278 show_workon_ebuilds ${BOARD_KEYWORD} ;; 278 show_workon_ebuilds ${BOARD_KEYWORD} ;;
279 list-all) show_all_live_ebuilds ;; 279 list-all) show_all_live_ebuilds ;;
280 iterate) ebuild_iterate "${ATOM_LIST}" ;; 280 iterate) ebuild_iterate "${ATOM_LIST}" ;;
281 *) die "$(basename $0): command '${WORKON_CMD}' not recognized" ;; 281 *) die "$(basename $0): command '${WORKON_CMD}' not recognized" ;;
282 esac 282 esac
OLDNEW
« no previous file with comments | « no previous file | host/cros_workon_make » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698