#!/bin/bash cd `dirname $0` export LD_LIBRARY_PATH=../dist/lib if test -z $1 then { export VARIANTS=debug } else { export VARIANTS=$1 } fi if test -e /proc/ then { export CPUCOUNT=`grep -c ^processor /proc/cpuinfo` [ `which clang++` ] || export TOOLSET=toolset=gcc export LD_LIBRARY_PATH=../dist/lib EXTENSION="so" } else { export CPUCOUNT=`sysctl -n hw.ncpu` export TOOLSET=toolset=darwin export DYLD_LIBRARY_PATH=../dist/lib EXTENSION="dylib" export LANG=C } fi if ../bjam $TOOLSET $VARIANTS -j$CPUCOUNT `../python.opts.sh` $* then { echo fost-orm $* OK exit 0 } else { exit 1 } fi