/[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.3 Revision 1.4
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.3 2005/02/04 16:26:45 wolf31o2 Exp $ 4# $Header: /var/cvsroot/gentoo-x86/scripts/Attic/bootstrap-new.sh,v 1.4 2005/02/04 18:28:47 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)
76 --pretend|-p) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -p" ; unset STRAP_RUN ;; 76 --pretend|-p) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -p" ; unset STRAP_RUN ;;
77 --tree|-t) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -p -t"; unset STRAP_RUN ;; 77 --tree|-t) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -p -t"; unset STRAP_RUN ;;
78 --resume|-r) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} --usepkg --buildpkg";; 78 --resume|-r) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} --usepkg --buildpkg";;
79 --verbose|-v) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -v"; V_ECHO=v_echo;; 79 --verbose|-v) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -v"; V_ECHO=v_echo;;
80 --version) 80 --version)
81 cvsver="$Header: /var/cvsroot/gentoo-x86/scripts/Attic/bootstrap-new.sh,v 1.3 2005/02/04 16:26:45 wolf31o2 Exp $" 81 cvsver="$Header: /var/cvsroot/gentoo-x86/scripts/Attic/bootstrap-new.sh,v 1.4 2005/02/04 18:28:47 wolf31o2 Exp $"
82 cvsver=${cvsver##*,v } 82 cvsver=${cvsver##*,v }
83 einfo "Gentoo ${GENTOO_VERS} bootstrap ${cvsver%%Exp*}" 83 einfo "Gentoo ${GENTOO_VERS} bootstrap ${cvsver%%Exp*}"
84 exit 0 84 exit 0
85 ;; 85 ;;
86 *) 86 *)
88 usage 88 usage
89 exit 1;; 89 exit 1;;
90 esac 90 esac
91done 91done
92 92
93RESUME=0
93if [[ -n ${STRAP_RUN} ]] ; then 94if [[ -n ${STRAP_RUN} ]] ; then
94 if [ ${BOOTSTRAP_STAGE} -ge 4 ] ; then 95 if [ ${BOOTSTRAP_STAGE} -ge 4 ] ; then
95 echo 96 echo
96 einfo "System has been bootstrapped already!" 97 einfo "System has been bootstrapped already!"
97 einfo "If you re-bootstrap the system, you must complete the entire bootstrap process" 98 einfo "If you re-bootstrap the system, you must complete the entire bootstrap process"
287# We can't unmerge headers which may or may not exist yet. If your 288# We can't unmerge headers which may or may not exist yet. If your
288# trying to use nptl, it may be needed to flush out any old headers 289# trying to use nptl, it may be needed to flush out any old headers
289# before fully bootstrapping. 290# before fully bootstrapping.
290if [ ${BOOTSTRAP_STAGE} -le 2 ] ; then 291if [ ${BOOTSTRAP_STAGE} -le 2 ] ; then
291 show_status 3 Emerging packages 292 show_status 3 Emerging packages
292 if [ ${RESUME} -eq 1 ] ; then 293 if [[ ${RESUME} -eq 1 ]] ; then
293 STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} --resume" 294 STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} --resume"
294 cp /var/run/bootstrap-mtimedb /var/cache/edb 295 cp /var/run/bootstrap-mtimedb /var/cache/edb
295 else 296 else
296 STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -e" 297 STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -e"
297 fi 298 fi

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20