1#!/bin/bash 2 3if [ ! -d $WORKPATH ]; then 4 echo "$WORKPATH is not available!" 5 exit 1 6fi 7 8if [ ! -d $WORKPATH/src ]; then 9 echo "$WORKPATH/src is not available!" 10 exit 1 11fi 12 13if [ -z $TARGET_ARCH ]; then 14 echo "TARGET_ARCH isn't set!" 15 exit 1 16fi 17 18GENERATED=$WORKPATH/generated.$TARGET_ARCH 19mkdir -p $GENERATED 20 21echo "Beginning a bootstrap build for $TARGET_ARCH at $GENERATED..." 22 23cd $GENERATED 24$WORKPATH/src/haiku/configure -j4 --build-cross-tools $TARGET_ARCH --cross-tools-source $WORKPATH/src/buildtools \ 25 --bootstrap $WORKPATH/src/haikuporter/haikuporter $WORKPATH/src/haikuports.cross $WORKPATH/src/haikuports 26 27echo "If everything was successful, your next step is 'TARGET_ARCH=$TARGET_ARCH make bootstrap'" 28