#!/bin/sh # Shave and a Haircut # (c) 2019 Epic Games # US Patent 6720962 # Copy the prman shader into the dirs in RMSTREE, RMANTREE and RATTREE paths="$RMSTREE $RMANTREE $RATTREE" for dir in ${paths//:/ }; do targetDir="${dir}/lib/shaders" if [ -d ${targetDir} -a -w ${targetDir} ]; then cp %%mayaShared%%/plug-ins/prman/lib/shaders/Shave.slo ${targetDir} fi done # MR shaders should no longer be listed in the maya.rayrc file and can in # fact cause failures on OSX (because MR tries to pick them up twice). if [ -d %%rayrcLocation%% ]; then cd %%rayrcLocation%% if [ -w maya.rayrc ]; then if grep shaveMRShader maya.rayrc >/dev/null; then sed '/shaveMRShader/d' maya.rayrc >shave.tmp mv shave.tmp maya.rayrc fi fi fi