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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cros_workon ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/cros_workon_common.sh
diff --git a/lib/cros_workon_common.sh b/lib/cros_workon_common.sh
new file mode 100644
index 0000000000000000000000000000000000000000..45f3c1370311f237f3d2373abbd632e23e998211
--- /dev/null
+++ b/lib/cros_workon_common.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Common library for functions used by workon tools.
+
+show_workon_ebuilds() {
+ pushd "${BOARD_DIR}"/etc/ 1> /dev/null
+ source make.conf
+ popd 1> /dev/null
+ local CROS_OVERLAYS="${PORTDIR_OVERLAY}"
+
+ for overlay in ${CROS_OVERLAYS}; do
+ pushd ${overlay} 1> /dev/null
+ find . -name '*.ebuild' | xargs fgrep cros-workon | \
+ awk -F / '{ print $2 "/" $3 }' | uniq | sort
+ popd 1> /dev/null
+ done
+}
« 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