3 export CBS_BASE=$(cd $(dirname "$0"); pwd)
5 if [ -e $CBS_BASE/config.sh ]; then
8 echo "config.sh not found."
12 if [ "$CBS_PARALLEL" == "" ]; then
13 echo " (\$CBS_PARALLEL not set; add export CBS_PARALLEL=\"-j4\" or similar to config.sh to do parallel builds)"
16 # $1 must be package name
17 if [ "$1" == "" ]; then
18 echo "Syntax: $0 <package> [variant]"
26 export CBS_ARCHIVES=$CBS_BASE/Archives
27 export CBS_PATCHES=$CBS_BASE/Patches
28 export CBS_REPOS=$CBS_BASE/Repos
32 source $CBS_BASE/tools.sh
34 export CBS_ROOT=$CBS_BASE
35 export CBS_BUILD=$CBS_BASE/Build
36 export CBS_BUILD_BIN=$CBS_BASE/bin
37 export PKG_CONFIG_LIBDIR=$CBS_ROOT/lib/pkgconfig
38 export PKG_CONFIG_PATH=
40 # Magic variable to set target OS X version
41 export MESON=$CBS_BASE/meson-0.56.0/meson.py
42 mkdir -p $CBS_ROOT $CBS_BUILD $CBS_BASE/Log
46 bash $CBS_BASE/Scripts/$PACKAGE.sh > $CBS_BASE/Log/$PACKAGE.log 2>&1
47 if [ "$?" != "0" ]; then
48 echo "********* ERROR!"
49 errors=`expr $errors + 1`