/[gentoo-x86]/scripts/bootstrap.sh
Gentoo

Contents of /scripts/bootstrap.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (hide annotations) (download) (as text)
Sat Sep 1 04:48:37 2001 UTC (13 years, 3 months ago) by drobbins
Branch: MAIN
Changes since 1.10: +3 -2 lines
File MIME type: text/x-sh
fixes for bootstrap

1 pete 1.1 #!/bin/sh
2    
3     LIST=$1
4    
5 drobbins 1.2 myPORTAGE=`grep "sys-apps/portage" $1`
6 pete 1.1 myGETTEXT=`grep "sys-devel/gettext" $1`
7     myBINUTILS=`grep "sys-devel/binutils" $1`
8     myGCC=`grep "sys-devel/gcc" $1`
9     myGLIBC=`grep "sys-libs/glibc" $1`
10    
11 drobbins 1.2 echo "Using PORTAGE $myPORTAGE"
12 pete 1.1 echo "Using BINUTILS $myBINUTILS"
13     echo "Using GCC $myGCC"
14     echo "Using GETTEXT $myGETTEXT"
15     echo "Using GLIBC $myGLIBC"
16    
17 drobbins 1.10 #USE may be set from the environment so we back it up for later.
18 drobbins 1.7 if [ "${USE-UNSET}" = "UNSET" ]
19     then
20 drobbins 1.10 use_unset=yes
21 drobbins 1.7 else
22 drobbins 1.10 use_old="$USE"
23     use_unset=no
24 drobbins 1.7 fi
25 achim 1.9 export USE="build"
26 drobbins 1.10
27     #get correct CFLAGS, CHOST, CXXFLAGS, MAKEOPTS since make.conf will be
28     #overwritten
29     cp /etc/make.conf /etc/make.conf.build
30     export CFLAGS="`spython -c 'import portage; print portage.settings["CFLAGS"];'`"
31     export CHOST="`spython -c 'import portage; print portage.settings["CHOST"];'`"
32     export CXXFLAGS="`spython -c 'import portage; print portage.settings["CXXFLAGS"];'`"
33     export MAKEOPTS="`spython -c 'import portage; print portage.settings["MAKEOPTS"];'`"
34    
35 drobbins 1.5 export CONFIG_PROTECT=""
36     #above allows portage to overwrite stuff
37 pete 1.1 cd /usr/portage
38 drobbins 1.11 emerge $myPORTAGE #separate, so that the next command uses the *new* emerge
39     emerge $myBINUTILS $myGCC $myGETTEXT || exit
40 drobbins 1.10 if [ "$use_unset" = "yes" ]
41 drobbins 1.7 then
42     unset USE
43     else
44 drobbins 1.10 export USE="$use_old"
45 drobbins 1.7 fi
46 achim 1.9 # This line should no longer be required
47     #export USE="`spython -c 'import portage; print portage.settings["USE"];'` bootstrap"
48 drobbins 1.11 emerge $myGLIBC $myGETTEXT $myBINUTILS $myGCC || exit
49 drobbins 1.10 #restore settings
50     cp /etc/make.conf.build /etc/make.conf

  ViewVC Help
Powered by ViewVC 1.1.20