+function DoOSXBuild {
+ local host=$1
+ local flavor=$2
+
+ # test if the target machine is online
+ if ping -q -c1 -w1 $host > /dev/null; then
+ echo "-----------------------------------------------------------------"
+ echo " The $host machine is online, OSX-$flavor build continuing..."
+ echo "-----------------------------------------------------------------"
+ else
+ echo "-----------------------------------------------------------------"
+ echo "The $host machine is offline, skipping the OSX-$flavor build."
+ echo "-----------------------------------------------------------------"
+ return 0
+ fi
+
+ echo "-=-=- Starting OSX-$flavor build on $host..."