summaryrefslogtreecommitdiff
blob: 1fa769df7bce4a6cb6d101510e5072c4bd654213 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
x86_ver=1.0
sparc_ver=1.0
sparc64_ver=1.0
unamem=`uname -m`

case `uname -m` in
	sparc64)	profile=default-sparc64-${sparc64_ver}		;;
	sparc)		profile=default-sparc-${sparc_ver}			;;
	i[0-9]86)	profile=default-${x86_ver}					;;
esac

profiledir=/usr/portage/profiles/${profile}

for x in `cat ${profiledir}/packages.build`
do
	grep -E "${x}(-[^[:space:]]*)?[[:space:]]*$" ${profiledir}/packages \
		| grep -v '^#' | sed -e 's:^\*::' | cat 
done