#!/bin/bash export TARGETVER="9.0" export WORKDATE="`date +%Y%m%d`" if [ "$1" = "x86" ] ; then export CHOST="i686-gentoo-freebsd${TARGETVER}" export TARGETARCH="x86" export TARGETSUBARCH="i686" else export CHOST="x86_64-gentoo-freebsd${TARGETVER}" export TARGETARCH="amd64" export TARGETSUBARCH="amd64" fi if [ ! -e /var/tmp/catalyst/builds/default ] ; then mkdir -p /var/tmp/catalyst/builds/default fi if [ ! -e /var/tmp/catalyst/builds/default/stage3-${TARGETSUBARCH}-freebsd-9.0.tar.bz2 ] ; then wget -P /var/tmp/catalyst/builds/default http://dev.gentoo.org/~aballier/fbsd9.0/${TARGETARCH}/stage3-${TARGETSUBARCH}-freebsd-9.0.tar.bz2 if [ $? -ne 0 ] ; then exit fi fi catalyst -C target=snapshot version_stamp=${WORKDATE} || exit catalyst -C target=stage1 version_stamp=fbsd-${TARGETVER}-${WORKDATE}t profile=default/bsd/fbsd/${TARGETARCH}/${TARGETVER} snapshot=${WORKDATE} source_subpath=default/stage3-${TARGETSUBARCH}-freebsd-9.0 subarch=${TARGETSUBARCH} rel_type=default chost=${CHOST} || exit ln -s libmpfr.so.5 /var/tmp/catalyst/tmp/default/stage1-${TARGETSUBARCH}-fbsd-$ TARGETVER}-${WORKDATE}t/tmp/stage1root/usr/lib/libmpfr.so.4 || exit catalyst -C target=stage2 version_stamp=fbsd-${TARGETVER}-${WORKDATE}t profile=default/bsd/fbsd/${TARGETARCH}/${TARGETVER} snapshot=${WORKDATE} source_subpath=default/stage1-${TARGETSUBARCH}-fbsd-${TARGETVER}-${WORKDATE}t subarch=${TARGETSUBARCH} rel_type=default chost=${CHOST} || exit catalyst -C target=stage3 version_stamp=fbsd-${TARGETVER}-${WORKDATE}t profile=default/bsd/fbsd/${TARGETARCH}/${TARGETVER} snapshot=${WORKDATE} source_subpath=default/stage2-${TARGETSUBARCH}-fbsd-${TARGETVER}-${WORKDATE}t subarch=${TARGETSUBARCH} rel_type=default || exit catalyst -C target=stage1 version_stamp=fbsd-${TARGETVER}-${WORKDATE} profile=default/bsd/fbsd/${TARGETARCH}/${TARGETVER} snapshot=${WORKDATE} source_subpath=default/stage3-${TARGETSUBARCH}-fbsd-${TARGETVER}-${WORKDATE}t subarch=${TARGETSUBARCH} rel_type=default chost=${CHOST} || exit catalyst -C target=stage2 version_stamp=fbsd-${TARGETVER}-${WORKDATE} profile=default/bsd/fbsd/${TARGETARCH}/${TARGETVER} snapshot=${WORKDATE} source_subpath=default/stage1-${TARGETSUBARCH}-fbsd-${TARGETVER}-${WORKDATE} subarch=${TARGETSUBARCH} rel_type=default chost=${CHOST} || exit catalyst -C target=stage3 version_stamp=fbsd-${TARGETVER}-${WORKDATE} profile=default/bsd/fbsd/${TARGETARCH}/${TARGETVER} snapshot=${WORKDATE} source_subpath=default/stage2-${TARGETSUBARCH}-fbsd-${TARGETVER}-${WORKDATE} subarch=${TARGETSUBARCH} rel_type=default