#!/bin/sh set -e # Run this script against the copy of the gentoo tree that's going to be used export PORTDIR="${1:-/}" export ACCEPT_KEYWORDS="-* amd64" pkgs=" app-misc/ca-certificates net-misc/wget sys-apps/portage " for x in $pkgs; do ver="$(portageq best_visible / ebuild "$x")" portageq metadata / ebuild "$ver" SRC_URI echo done