@echo off

@rem --------------------------------------------------------------
@rem   SoftMan Setup Script.
@rem   Animal Logic (c) 1997,1999
@rem --------------------------------------------------------------



@rem You will need to modify three places in this file:
@rem   1 - The path to where Softimage's "setenv.bat" lives.
@rem   2 - The value of SOFTMANROOT
@rem   3 - The license file location in LM_LICENSE_FILE
@rem
@rem You may also need to uncomment and edit the BMRT section
@rem towards the bottom to make sure that your BMRT environment
@rem is set up before you run Soft.




@rem --------------------------------------------------------------
@rem Ensure Softimage environment is set. If it's already set,
@rem it's assumed to be the correct version (3.8).
@rem The .softimage file is often kept elsewhere, such as the
@rem users home account. It may also have a different name. Make
@rem sure the path and name are correct for your network.
if "%SI_LOCATION%" == "" goto SetSoft
goto Done0000

:SetSoft
echo SoftMan requires Softimage 3.8 or later. Setting up...
@rem Modify this path to point to your Soft setup script.
set SI_SETENV_LOCATION=C:\soft3d_3.8\3d\bin
call %SI_SETENV_LOCATION%\setenv.bat
goto Done0000

:Done0000

@rem --------------------------------------------------------------
@rem Set this variable to SoftMan's installation directory,
@rem but only if SoftMan has not been already setup. If it has,
@rem quit with an informative message.
if "%SOFTMANROOT%" == "" goto SetSoftMan
goto DontSetSoftMan

:SetSoftMan
set SOFTMANROOT=C:\AnimalLogic\SoftMan
goto Done0001

:DontSetSoftMan
echo SoftMan environment already set up! Not doing it again...
goto End

:Done0001

@rem --------------------------------------------------------------
@rem Let the user know what version of SoftMan has been set up.
@rem This is just cosmetic - the variable is not really used.
title SoftMan Shell

@rem --------------------------------------------------------------
@rem Set up the library paths.
set path=%path%;%SOFTMANROOT%\dso;%SOFTMANROOT%\bin

@rem --------------------------------------------------------------
@rem Integrate SoftMan into the Softimage environment.
set SI_CUSTOM_MATTER=%SOFTMANROOT%\cus;%SI_CUSTOM_MATTER%

@rem --------------------------------------------------------------
@rem Tell SoftMan where to get its license.
set LM_LICENSE_FILE=%SOFTMANROOT%\license\Animal.dat;%LM_LICENSE_FILE%

@rem --------------------------------------------------------------
@rem If BMRT is required, you will have to set it up. If that has
@rem not already been done, at least these commands will be
@rem required for SoftMan to work with BMRT:

set BMRTTREE=C:\bmrt2.4
set path=%BMRTTREE%\bin;%path%

set RMANTREE=C:\PRMAN

echo SoftMan environment:
echo      Softimage's setenv.bat: %SI_SETENV_LOCATION%\setenv.bat
echo      SoftMan installation:   %SOFTMANROOT%
echo      BMRT location:          %BMRTTREE%

:End
