aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim <kolmax94@gmail.com>2011-06-16 13:39:25 +0400
committerMaxim <kolmax94@gmail.com>2011-06-16 13:54:51 +0400
commitb53c2383e3dcaac333699fb28cae870822f032a9 (patch)
treeb386d19aeb47a1fc68afd9821f8ea5fabd60e3a3
parentAdd m4 and bison to automated prefix install (diff)
downloadgentoo-openbsd-b53c2383e3dcaac333699fb28cae870822f032a9.tar.gz
gentoo-openbsd-b53c2383e3dcaac333699fb28cae870822f032a9.tar.bz2
gentoo-openbsd-b53c2383e3dcaac333699fb28cae870822f032a9.zip
Add profile generation to script/full-bootstrap-prefix.sh
-rwxr-xr-xscript/full-bootstrap-prefix.sh15
1 files 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