OLD | NEW |
(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 # Lists all package dependencies of a particular package. Useful to find out |
| 8 # all packages depended on by chromeos and chromeos-dev. |
| 9 |
| 10 . "$(dirname "$0")/common.sh" |
| 11 |
| 12 # Script must be run inside the chroot. |
| 13 assert_inside_chroot |
| 14 |
| 15 get_default_board |
| 16 |
| 17 # Flags. |
| 18 DEFINE_string board "$DEFAULT_BOARD" \ |
| 19 "The board for which the image was built." b |
| 20 |
| 21 # Parse flags. |
| 22 FLAGS "$@" || exit 1 |
| 23 |
| 24 if [[ -z "${FLAGS_ARGV}" ]]; then |
| 25 echo "Please specify package." |
| 26 echo "Usage: ./get_package_list.sh chromeos-base/chromeos > package.list" |
| 27 exit 1 |
| 28 fi |
| 29 |
| 30 emerge-$FLAGS_board --emptytree --usepkgonly -p -v --columns \ |
| 31 $1 2> /dev/null | cut -d ' ' -f 8 | grep '/' |
OLD | NEW |