#!/bin/csh -f
#Tag 0x0027100D

#
# The cshell script is used to launch the Soundsync application. The
# executable for the application is called ssx. This script takes care
# of a few environment variables that need to be set for Soundsync to
# run properly.
#

set script_name = $0

if ($?ALIAS_LOCATION != 0) then
    set root = $ALIAS_LOCATION
else
    set root = /usr/aw/alias
endif

unsetenv XBMLANGPATH
unsetenv _RLD_ROOT
unsetenv LD_BIND_NOW

setenv LD_LIBRARY_PATH $root/lib
setenv XUSERFILESEARCHPATH ./%N:$root/app-defaults/%N:/usr/lib/X11/app-defaults
setenv XAPPLRESDIR $root/app-defaults
setenv WL_WIDGET_RESOURCE_PATH $root/app-defaults

setenv HHHOME $root/Help
setenv HHPATH $root/Help/bin/sgi

if ($?ALIAS_PLUGIN_PATH == 0) then
    setenv ALIAS_PLUGIN_PATH $root/plugins
endif

if (-x $root/bin/ssx) then
    $root/bin/ssx $*
else
    ssx $*
endif
