summaryrefslogtreecommitdiff
blob: 7d0c6664de5ad697e37bd55eec332bb232319f90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

if [ "${1}" ]; then
	ver=${1}
else
	ver=x86-1.4
fi

for x in `cat /usr/portage/profiles/default-${ver}/packages.build`
do
	myp=$(grep -E "${x}(-[^[:space:]]*)?[[:space:]]*$" /usr/portage/profiles/default-${ver}/packages | grep -v '^#' | sed -e 's:^\*::' | cat )
	if [ "$myp" = "" ]
	then
		#if not in the system profile, include it anyway
		echo $x
	else
		echo $myp
	fi
done