blob: 13b8904cca0bc9cf53d6b8382c411028fa89d113 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
|