blob: a51be0911cdac9d2b58b5bfa6c6d4bb8abe432a7 (
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
|
#!/bin/sh
# 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/shaders/Shave.slo ${targetDir}
fi
done
# We used to keep libShave.dylib and libShaveAPI.dylib in Maya's shared
# directory but had to move them to Maya's install directory to allow
# everything to be relocated by the user. So get rid of those libs if they are
# still lying around in the shared directory.
#
# We need to do the same thing in our current target directory in case it
# is something other than Maya's shared directory.
#
libs="%%mayaShared%%/plug-ins/libShave.dylib %%mayaShared%%/plug-ins/libShaveAPI.dylib $2/plug-ins/libShave.dylib $2/plug-ins/libShaveAPI.dylib"
for f in ${libs}; do
if [ -f $f ]; then
rm -f $f
fi
done
|