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 mkdir $WORKPATH/src 10fi 11 12# These we clone or pull updates on 13if [ ! -d $WORKPATH/src/buildtools ]; then 14 git clone $GIT_BUILDTOOLS $WORKPATH/src/buildtools 15else 16 git -C $WORKPATH/src/buildtools pull --rebase 17fi 18 19if [ ! -d $WORKPATH/src/haikuporter ]; then 20 git clone $GIT_HAIKUPORTER $WORKPATH/src/haikuporter 21else 22 git -C $WORKPATH/src/buildtools pull --rebase 23fi 24 25if [ ! -d $WORKPATH/src/haikuports ]; then 26 git clone $GIT_HAIKUPORTS $WORKPATH/src/haikuports 27else 28 git -C $WORKPATH/src/haikuports pull --rebase 29fi 30 31 32# These we just clone since modifications are likely 33if [ ! -d $WORKPATH/src/haikuports.cross ]; then 34 git clone $GIT_HAIKUPORTS_CROSS $WORKPATH/src/haikuports.cross 35fi 36 37if [ ! -d $WORKPATH/src/haiku ]; then 38 git clone $GIT_HAIKU $WORKPATH/src/haiku 39fi 40 41mkdir $WORKPATH/bin 42if [ ! -f $WORKPATH/bin/jam ]; then 43 cd $WORKPATH/src/buildtools/jam 44 make 45 cp -f bin.linuxx86/jam $WORKPATH/bin/jam 46 cd - 47fi 48