/[gentoo-alt]/trunk/prefix/scripts/bootstrap-prefix.sh
Gentoo

Diff of /trunk/prefix/scripts/bootstrap-prefix.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1522 Revision 1523
16 eerror() { echo "!!! $*" 1>&2; } 16 eerror() { echo "!!! $*" 1>&2; }
17 einfo() { echo "* $*"; } 17 einfo() { echo "* $*"; }
18fi 18fi
19 19
20## Functions Start Here 20## Functions Start Here
21
22make_tree() {
23 for x in etc usr/{,s}bin var/tmp var/lib/portage var/log/portage;
24 do
25 [ -d "${ROOT}/${x}" ] || mkdir -p "${ROOT}/${x}"
26 done
27 if [ ! -e ${ROOT}/usr/portage/.unpacked ]; then
28 cd ${ROOT}/usr
29 ${FETCH_COMMAND} "${GENTOO_URL}/experimental/snapshots/portage-alt-prefix-latest.tar.bz2"
30 tar -jxf portage-alt-prefix-latest.tar.bz2
31 mv portage{-alt-prefix,}
32 touch portage/.unpacked
33 mkdir portage/distfiles
34 rm portage-alt-prefix-latest.tar.bz2
35 fi
36}
37 21
38econf() { 22econf() {
39 ./configure \ 23 ./configure \
40 --prefix=${ROOT}/usr \ 24 --prefix=${ROOT}/usr \
41 --host=${CHOST} \ 25 --host=${CHOST} \
136 120
137 einfo "Protecting you against yourself :p" 121 einfo "Protecting you against yourself :p"
138 echo 'SYNC="rsync://not-yet-available/sorry"' >> ${ROOT}/etc/make.conf 122 echo 'SYNC="rsync://not-yet-available/sorry"' >> ${ROOT}/etc/make.conf
139} 123}
140 124
125bootstrap_tree() {
126 for x in etc usr/{,s}bin var/tmp var/lib/portage var/log/portage;
127 do
128 [ -d "${ROOT}/${x}" ] || mkdir -p "${ROOT}/${x}"
129 done
130 if [ ! -e ${ROOT}/usr/portage/.unpacked ]; then
131 cd ${ROOT}/usr
132 ${FETCH_COMMAND} "${GENTOO_URL}/experimental/snapshots/portage-alt-prefix-latest.tar.bz2"
133 tar -jxf portage-alt-prefix-latest.tar.bz2
134 mv portage{-alt-prefix,}
135 touch portage/.unpacked
136 mkdir portage/distfiles
137 rm portage-alt-prefix-latest.tar.bz2
138 fi
139}
140
141bootstrap_portage() { 141bootstrap_portage() {
142 PV=latest 142 PV=latest
143 A=portage-prefix-${PV}.tar.bz2 143 A=portage-prefix-${PV}.tar.bz2
144 einfo "Bootstrapping ${A%-*}" 144 einfo "Bootstrapping ${A%-*}"
145 145
340bootstrap_wget() { 340bootstrap_wget() {
341 bootstrap_gnu wget 1.10.2 341 bootstrap_gnu wget 1.10.2
342} 342}
343 343
344bootstrap_all() { 344bootstrap_all() {
345 make_tree 345 bootstrap_tree
346 case ${CHOST} in 346 case ${CHOST} in
347 *-*-darwin*) 347 *-*-darwin*)
348 bootstrap_odcctools 348 bootstrap_odcctools
349 esac 349 esac
350 bootstrap_gcc 350 bootstrap_gcc

Legend:
Removed from v.1522  
changed lines
  Added in v.1523

  ViewVC Help
Powered by ViewVC 1.1.20