summaryrefslogtreecommitdiff
blob: 6a5a8fb1681b7ae0373589f3197d8824be433cd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

LIST=$1

myPORTAGE=`grep "sys-apps/portage" $1`
myGETTEXT=`grep "sys-devel/gettext" $1`
myBINUTILS=`grep "sys-devel/binutils" $1`
myGCC=`grep "sys-devel/gcc" $1`
myGLIBC=`grep "sys-libs/glibc" $1`

echo "Using PORTAGE $myPORTAGE"
echo "Using BINUTILS $myBINUTILS"
echo "Using GCC $myGCC"
echo "Using GETTEXT $myGETTEXT"
echo "Using GLIBC $myGLIBC"

export USE="build"
cd /usr/portage
emerge $myPORTAGE || exit
emerge $myGETTEXT || exit
emerge $myBINUTILS || exit
emerge $myGCC || exit
unset USE
export USE="`spython -c 'import portage; print portage.settings["USE"];'` bootstrap"
emerge $myGLIBC || exit
emerge $myGETTEXT || exit
emerge $myBINUTILS || exit
emerge $myGCC || exit
unset USE