Example of .xsi_1.0 (IRIX Environment Script)
Here is a typical .xsi_1.0 file's contents:
# Softimage environment variables
#
# Unset any environment variables starting with MW
foreach f ( `env | /bin/sort | /bin/egrep "^MW" | /bin/cut -d= -f1` )
unsetenv $f
end
# Make sure HOME is defined
if ( ! $?HOME ) then
setenv HOME "`(cd;/bin/pwd)`"
endif
# Setup environment variables
setenv SI_HOME "/usr/Softimage/XSI_1.0"
setenv MWHOME "$SI_HOME/mw"
setenv SIUSERDIR "$HOME/Softimage"
setenv MI_ROOT "${SI_HOME}/rsrc"
setenv MI_RAY2_SERVICE "mi-ray2xsi"
if ( ! $?LOGNAME ) setenv LOGNAME "`/bin/whoami`"
# Setup the mainwin env. variables
source "$SI_HOME/mw/scripts/.mwenv"
# Create SIUSERDIR
if ( ! -d "$SIUSERDIR" ) mkdir -p "$SIUSERDIR"
# SPDL env variables
set mwperl="$MWHOME/lib-mips_irix6/mwperl"
# To change the configuration
alias siclean "killall ds; killall rpcss;$mwperl
$SI_HOME/mw/scripts/ipcclean.pl"
# Create directories
if ( ! -d "$SIUSERDIR/DSScripts" ) mkdir -p "$SIUSERDIR/DSScripts"
if ( ! -d "$SIUSERDIR/DSProjects" ) mkdir -p "$SIUSERDIR/DSProjects"
if ( ! -d "$HOME/windows" ) mkdir -p "$HOME/windows"
if ( ! -f "$SIUSERDIR/DSScripts/.done" ) then
/bin/cp -r "$SI_HOME/DSScripts" "$SIUSERDIR"
/bin/touch "$SIUSERDIR/DSScripts/.done"
endif
# Update win.ini
if ( ! -f "$HOME/windows/win.ini" ) then
/bin/cp "$MWHOME/win.ini" "$HOME/windows/win.ini"
endif
# Update the font on the X server
/usr/bin/X11/xset fp default
/usr/bin/X11/xset +fp $SI_HOME/fonts
/usr/bin/X11/xset fp rehash
# Update the regitry
set hostname=(`/usr/bsd/hostname -s`)
setenv MWREGISTRY "$SIUSERDIR/registry.xsi_1.0.${hostname}"
if ( ! -f "$MWREGISTRY" ) then
if ( ! -d "$SIUSERDIR" ) mkdir -p "$SIUSERDIR"
/bin/cp "$SI_HOME/registry" "$MWREGISTRY"
endif
# Set the LM_LICENSE_FILE
setenv LM_LICENSE_FILE "744@corp1"
EXIT: