| 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 # 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, |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 fi;; | 224 fi;; |
| 225 *) ;; | 225 *) ;; |
| 226 esac | 226 esac |
| 227 fi | 227 fi |
| 228 | 228 |
| 229 case ${WORKON_CMD} in | 229 case ${WORKON_CMD} in |
| 230 start) ebuild_to_live "${ATOM_LIST}"; regen_manifest_and_sync ;; | 230 start) ebuild_to_live "${ATOM_LIST}"; regen_manifest_and_sync ;; |
| 231 stop) ebuild_to_stable "${ATOM_LIST}" ;; | 231 stop) ebuild_to_stable "${ATOM_LIST}" ;; |
| 232 list) [ ${FLAGS_all} = "${FLAGS_FALSE}" ] && show_live_ebuilds || show_worko
n_ebuilds ;; | 232 list) [ ${FLAGS_all} = "${FLAGS_FALSE}" ] && show_live_ebuilds || show_worko
n_ebuilds ;; |
| 233 iterate)ebuild_iterate "${ATOM_LIST}" ;; | 233 iterate)ebuild_iterate "${ATOM_LIST}" ;; |
| 234 *) die "invalid cros_workon command" ;; | 234 *) die "$(basename $0): command '${WORKON_CMD}' not recognized" ;; |
| 235 esac | 235 esac |
| OLD | NEW |