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

Side by Side Diff: lib/cros_workon_common.sh

Issue 3022010: Create common script file for workon tools. Planning on using in another CL. (Closed) Base URL: ssh://git@chromiumos-git//crosutils.git
Patch Set: Move to lib Created 10 years, 5 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
« no previous file with comments | « cros_workon ('k') | 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
(Empty)
1 #!/bin/bash
2
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
5 # found in the LICENSE file.
6
7 # Common library for functions used by workon tools.
8
9 show_workon_ebuilds() {
10 pushd "${BOARD_DIR}"/etc/ 1> /dev/null
11 source make.conf
12 popd 1> /dev/null
13 local CROS_OVERLAYS="${PORTDIR_OVERLAY}"
14
15 for overlay in ${CROS_OVERLAYS}; do
16 pushd ${overlay} 1> /dev/null
17 find . -name '*.ebuild' | xargs fgrep cros-workon | \
18 awk -F / '{ print $2 "/" $3 }' | uniq | sort
19 popd 1> /dev/null
20 done
21 }
OLDNEW
« no previous file with comments | « cros_workon ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698