/[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 1209 Revision 1210
16PORTDIR=${ROOT}/usr/portage 16PORTDIR=${ROOT}/usr/portage
17DISTDIR=${PORTDIR}/distfiles 17DISTDIR=${PORTDIR}/distfiles
18PORTAGE_TMPDIR=${ROOT}/var/tmp 18PORTAGE_TMPDIR=${ROOT}/var/tmp
19PORTAGE_URL="http://dev.gentoo.org/~kito/distfiles" 19PORTAGE_URL="http://dev.gentoo.org/~kito/distfiles"
20GNU_URL="http://ftp.gnu.org/gnu" 20GNU_URL="http://ftp.gnu.org/gnu"
21GCC_APPLE_PV=5247
22GCC_APPLE_URL="http://darwinsource.opendarwin.org/DevToolsNov2005" 21GCC_APPLE_URL="http://darwinsource.opendarwin.org/DevToolsNov2005"
22GENTOO_URL="http://gentoo.osuosl.org"
23 23
24export CFLAGS CXXFLAGS 24export CFLAGS CXXFLAGS
25 25
26# Source functions to have colors and nice output 26# Source functions to have colors and nice output
27 27
42 42
43make_tree() { 43make_tree() {
44 for x in etc usr/{,s}bin var/tmp usr/portage/distfiles var/lib/portage var/log/portage; do 44 for x in etc usr/{,s}bin var/tmp usr/portage/distfiles var/lib/portage var/log/portage; do
45 [ -d "${ROOT}/${x}" ] || mkdir -p "${ROOT}/${x}" 45 [ -d "${ROOT}/${x}" ] || mkdir -p "${ROOT}/${x}"
46 done 46 done
47 ${FETCH_COMMAND} ${GENTOO_URL}/experimental/snapshots/portage-alt-prefix-latest.tar.bz2
48 if [ ! -e ${ROOT}/usr/portage-alt-prefix/.unpacked ]; then
49 cd ${ROOT}/usr
50 tar xjf ${DISTDIR}/portage-alt-prefix-latest.tar.bz2
51 touch portage-alt-prefix/.unpacked
52 fi
47} 53}
48 54
49econf() { 55econf() {
50 ./configure \ 56 ./configure \
51 --prefix=${ROOT}/usr \ 57 --prefix=${ROOT}/usr \
348einfo "Bootstrapping Gentoo prefixed portage installation using" 354einfo "Bootstrapping Gentoo prefixed portage installation using"
349einfo "host: ${CHOST}" 355einfo "host: ${CHOST}"
350einfo "prefix: ${ROOT}" 356einfo "prefix: ${ROOT}"
351 357
352TODO=${2:-all} 358TODO=${2:-all}
359[[ $(type -t bootstrap_${TODO}) == "function" ]] || exit 1
353make_tree 360make_tree
354einfo "ready to bootstrap function" 361einfo "ready to bootstrap ${TODO}"
355bootstrap_${TODO} 362bootstrap_${TODO}

Legend:
Removed from v.1209  
changed lines
  Added in v.1210

  ViewVC Help
Powered by ViewVC 1.1.20