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

Diff of /scripts/bootstrap-new.sh

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

Revision 1.6 Revision 1.7
1#!/bin/bash 1#!/bin/bash
2# Copyright 1999-2005 Gentoo Foundation 2# Copyright 1999-2005 Gentoo Foundation
3# Distributed under the terms of the GNU General Public License v2 3# Distributed under the terms of the GNU General Public License v2
4# $Header: /var/cvsroot/gentoo-x86/scripts/Attic/bootstrap-new.sh,v 1.6 2005/03/02 23:44:57 azarah Exp $ 4# $Header: /var/cvsroot/gentoo-x86/scripts/Attic/bootstrap-new.sh,v 1.7 2005/03/07 19:42:54 wolf31o2 Exp $
5 5
6# people who were here: 6# people who were here:
7# (drobbins, 06 Jun 2003) 7# (drobbins, 06 Jun 2003)
8# (solar, Jul 2004) 8# (solar, Jul 2004)
9# (vapier, Aug 2004) 9# (vapier, Aug 2004)
77 --pretend|-p) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -p" ; unset STRAP_RUN ;; 77 --pretend|-p) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -p" ; unset STRAP_RUN ;;
78 --tree|-t) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -p -t"; unset STRAP_RUN ;; 78 --tree|-t) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -p -t"; unset STRAP_RUN ;;
79 --resume|-r) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} --usepkg --buildpkg";; 79 --resume|-r) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} --usepkg --buildpkg";;
80 --verbose|-v) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -v"; V_ECHO=v_echo;; 80 --verbose|-v) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -v"; V_ECHO=v_echo;;
81 --version) 81 --version)
82 cvsver="$Header: /var/cvsroot/gentoo-x86/scripts/Attic/bootstrap-new.sh,v 1.6 2005/03/02 23:44:57 azarah Exp $" 82 cvsver="$Header: /var/cvsroot/gentoo-x86/scripts/Attic/bootstrap-new.sh,v 1.7 2005/03/07 19:42:54 wolf31o2 Exp $"
83 cvsver=${cvsver##*,v } 83 cvsver=${cvsver##*,v }
84 einfo "Gentoo ${GENTOO_VERS} bootstrap ${cvsver%%Exp*}" 84 einfo "Gentoo ${GENTOO_VERS} bootstrap ${cvsver%%Exp*}"
85 exit 0 85 exit 0
86 ;; 86 ;;
87 *) 87 *)
228eval $(pycmd 'import portage; print portage.settings.packages;' | 228eval $(pycmd 'import portage; print portage.settings.packages;' |
229sed 's/[][,]//g; s/ /\n/g; s/\*//g' | while read p; do n=${p##*/}; n=${n%\'}; 229sed 's/[][,]//g; s/ /\n/g; s/\*//g' | while read p; do n=${p##*/}; n=${n%\'};
230n=${n%%-[0-9]*}; echo "my$(tr a-z- A-Z_ <<<$n)=$p; "; done) 230n=${n%%-[0-9]*}; echo "my$(tr a-z- A-Z_ <<<$n)=$p; "; done)
231 231
232# This stuff should never fail but will if not enough is installed. 232# This stuff should never fail but will if not enough is installed.
233[[ -z ${myBASELAYOUT} ]] && myBASELAYOUT="baselayout" 233[[ -z ${myBASELAYOUT} ]] && myBASELAYOUT="$(portageq best_version / virtual/baselayout)"
234[[ -z ${myPORTAGE} ]] && myPORTAGE="portage" 234[[ -z ${myPORTAGE} ]] && myPORTAGE="portage"
235[[ -z ${myBINUTILS} ]] && myBINUTILS="binutils" 235[[ -z ${myBINUTILS} ]] && myBINUTILS="binutils"
236[[ -z ${myGCC} ]] && myGCC="gcc" 236[[ -z ${myGCC} ]] && myGCC="gcc"
237[[ -z ${myGETTEXT} ]] && myGETTEXT="gettext" 237[[ -z ${myGETTEXT} ]] && myGETTEXT="gettext"
238[[ -z ${myLIBC} ]] && myLIBC="virtual/libc" 238[[ -z ${myLIBC} ]] && myLIBC="virtual/libc"

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20