#!/bin/bash
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/Attic/stage1.sh,v 1.2 2003/10/15 05:16:31 zhen Exp $
-if [ "${1}" ]; then
- ver=${1}
-else
- ver=x86-1.4
-fi
-
-for x in `cat /usr/portage/profiles/${BUILDTYPE}-${ver}/packages.build`
+for x in `cat /usr/portage/profiles/${REL_TYPE}-${REL_VERSION}/packages.build`
do
- myp=$(grep -E "${x}(-[^[:space:]]*)?[[:space:]]*$" /usr/portage/profiles/${BUILDTYPE}-${ver}/packages | grep -v '^#' | sed -e 's:^\*::' | cat )
+ myp=$(grep -E "${x}(-[^[:space:]]*)?[[:space:]]*$" /usr/portage/profiles/${REL_TYPE}-${REL_VERSION}/packages | grep -v '^#' | sed -e 's:^\*::' | cat )
if [ "$myp" = "" ]
then
#if not in the system profile, include it anyway
echo $myp
fi
done
+