| 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
|
| +}
|
|
|