getting some changes in
authorJohn P. Davis <zhen@gentoo.org>
Wed, 15 Oct 2003 05:16:31 +0000 (05:16 +0000)
committerJohn P. Davis <zhen@gentoo.org>
Wed, 15 Oct 2003 05:16:31 +0000 (05:16 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@8 d1e1f19c-881f-0410-ab34-b69fee027534

targets/stage1/stage1.sh

index 2622003f4e707287ab5fd4eb4b61493f1eabd1f9..37581ba79589a30e24cfc0a6e022d22cb731c117 100755 (executable)
@@ -1,14 +1,11 @@
 #!/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
@@ -17,3 +14,4 @@ do
                echo $myp
        fi
 done
+