#!/bin/bash # Shave and a Haircut # (c) 2019 Epic Games # US Patent 6720962 if [ "$2" = "" ]; then echo "Usage: $0 vrayVersion numJobs [debugOpt]" exit 1 fi vrayVersion=$1 numJobs=$2 debugOpt=$3 os=`../utils/getos.sh` vrayTag=`../vrayPlug/getVersionTag.sh ${vrayVersion}` if [ "${os/.*/}" = "ce6" ]; then isCentOS6=y else isCentOS6=n fi if [ ${isCentOS6} = y -a ${vrayTag} -ge 40 ]; then source /opt/rh/devtoolset-2/enable fi make -f Makefile-vrayexporter.linux -j ${numJobs} VRAY_VERSION=${vrayVersion} ${debugOpt}