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 /install/postinstall.sh | |
| download | shave-and-a-haircut-bd0027e737c6512397f841c22786274ed74b927f.tar.xz shave-and-a-haircut-bd0027e737c6512397f841c22786274ed74b927f.zip | |
Adding Shave-and-a-Haircut 9.6
Diffstat (limited to 'install/postinstall.sh')
| -rw-r--r-- | install/postinstall.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/install/postinstall.sh b/install/postinstall.sh new file mode 100644 index 0000000..13b8904 --- /dev/null +++ b/install/postinstall.sh @@ -0,0 +1,30 @@ +#!/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 |