diff options
| author | Ben Marsh <[email protected]> | 2019-10-22 09:07:59 -0400 |
|---|---|---|
| committer | Ben Marsh <[email protected]> | 2019-10-22 09:07:59 -0400 |
| commit | bd0027e737c6512397f841c22786274ed74b927f (patch) | |
| tree | f7ffbdb8f3741bb7f24635616cc189cba5cb865c /vrayPlug/mklinux.sh | |
| download | archived-shave-and-a-haircut-bd0027e737c6512397f841c22786274ed74b927f.tar.xz archived-shave-and-a-haircut-bd0027e737c6512397f841c22786274ed74b927f.zip | |
Adding Shave-and-a-Haircut 9.6
Diffstat (limited to 'vrayPlug/mklinux.sh')
| -rw-r--r-- | vrayPlug/mklinux.sh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/vrayPlug/mklinux.sh b/vrayPlug/mklinux.sh new file mode 100644 index 0000000..e75f6bc --- /dev/null +++ b/vrayPlug/mklinux.sh @@ -0,0 +1,40 @@ +#!/bin/sh + +# Shave and a Haircut +# (c) 2019 Epic Games +# US Patent 6720962 + +# Build the V-Ray plugins, shaders and exporters for a given version of V-Ray. +# +if [ "$1" == "" ]; then + echo "Usage: $0 vrayVersion" + exit 1 +fi + +vrayVersion=$1 +vrayTag=`./getVersionTag.sh ${vrayVersion}` + +if [ "${vrayTag}" == "" ]; then + echo "$0: unrecognized V-Ray version '${vrayVersion}'." + exit 2 +fi + +os=`../utils/getos.sh` + +if [ "${os/.*/}" == "ce6" ]; then + isCentOS6=y +else + isCentOS6=n +fi + +cd plugin + +if [ ${isCentOS6} == y -a ${vrayTag} -ge 40 ]; then + source /opt/rh/devtoolset-2/enable +fi + +make -f Linux_x64_vray${vrayTag}.mak VRAY_VERSION=${vrayVersion} clean +make -f Linux_x64_vray${vrayTag}.mak VRAY_VERSION=${vrayVersion} all || exit 1 + +make -f LinuxSh_x64_vray${vrayTag}.mak VRAY_VERSION=${vrayVersion} clean +make -f LinuxSh_x64_vray${vrayTag}.mak VRAY_VERSION=${vrayVersion} all || exit 1 |