From b53c2383e3dcaac333699fb28cae870822f032a9 Mon Sep 17 00:00:00 2001 From: Maxim Date: Thu, 16 Jun 2011 13:39:25 +0400 Subject: Add profile generation to script/full-bootstrap-prefix.sh --- script/full-bootstrap-prefix.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/script/full-bootstrap-prefix.sh b/script/full-bootstrap-prefix.sh index 7392066..25e1411 100755 --- a/script/full-bootstrap-prefix.sh +++ b/script/full-bootstrap-prefix.sh @@ -16,7 +16,7 @@ export PATH="$EPREFIX/usr/bin:$EPREFIX/bin:$EPREFIX/tmp/usr/bin:$EPREFIX/tmp/bin mkdir -p $EPREFIX/tmp [ ! -x ${EPREFIX}/tmp/usr/bin/bash ] && ./bootstrap-bash.sh $EPREFIX/tmp -[ ! -d ${EPREFIX}/usr/portage ] && ./bootstrap-prefix.sh $EPREFIX tree +[ ! -d ${EPREFIX}/usr/portage ] && ./bootstrap-prefix.sh $EPREFIX latest_tree [ ! -x ${EPREFIX}/tmp/usr/bin/make ] && ./bootstrap-prefix.sh $EPREFIX/tmp make [ ! -x ${EPREFIX}/tmp/usr/bin/wget ] && ./bootstrap-prefix.sh $EPREFIX/tmp wget @@ -30,7 +30,18 @@ mkdir -p $EPREFIX/tmp [ ! -x ${EPREFIX}/tmp/usr/bin/grep ] && ./bootstrap-prefix.sh $EPREFIX/tmp grep [ ! -x ${EPREFIX}/tmp/usr/bin/m4 ] && ./bootstrap-prefix.sh $EPREFIX/tmp m4 [ ! -x ${EPREFIX}/tmp/usr/bin/bison ] && ./bootstrap-prefix.sh $EPREFIX/tmp bison -[ ! -x ${EPREFIX}/usr/bin/emerge ] && ./bootstrap-prefix.sh $EPREFIX portage + +if [ ! -x ${EPREFIX}/usr/bin/emerge ]; then + #Make a profile for us + cp -R ${EPREFIX}/usr/portage/profiles/prefix/bsd/openbsd/4.{2,8} + cp -R ${EPREFIX}/usr/portage/profiles/prefix/bsd/openbsd/4.{2,9} + for arch in ppc x86 x64; do + for ver in 4.8 4.9; do + sed -i "s/4.2/${ver}/g" ${EPREFIX}/usr/portage/profiles/prefix/bsd/openbsd/${ver}/${arch}/make.defaults + done + done + ./bootstrap-prefix.sh $EPREFIX portage +fi hash -r -- cgit v1.2.3-18-g5258