home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #
- # Sun Microsystems Printer Admin
- # (c) 1999, Sun Microsystems, Inc.
-
- sd_cwd=`pwd`
-
- # locate StarOffice installation directory and binary name
- sd_inst=`ls -l $0 | sed 's/.* //g'`
- cd `dirname $sd_inst`/..
- sd_binary=`basename $0`".bin"
- sd_inst=`pwd`
-
- # change back directory
- cd $sd_cwd
-
- sd_fonts=$sd_inst/fonts
- sd_platform=`uname -s`
-
-
- # set search path for shared libraries
- case $sd_platform in
- SunOS)
- LD_LIBRARY_PATH=$sd_inst/service:$sd_inst/lib:/usr/openwin/lib:$LD_LIBRARY_PATH
- export LD_LIBRARY_PATH
- ;;
-
- AIX)
- LIBPATH=$sd_inst/service:$sd_inst/lib:$LIBPATH
- export LIBPATH
- ;;
-
- HP-UX)
- SHLIB_PATH=$sd_inst/service:$sd_inst/lib:/usr/openwin/lib:$SHLIB_PATH
- export SHLIB_PATH
- ;;
- IRIX)
- LD_LIBRARYN32_PATH=:$sd_inst/service:$sd_inst/lib:$LD_LIBRARYN32_PATH
- export LD_LIBRARYN32_PATH
- ;;
- *)
- LD_LIBRARY_PATH=$sd_inst/service:$sd_inst/lib:$LD_LIBRARY_PATH
- export LD_LIBRARY_PATH
- ;;
- esac
-
- # misc. environment variables
- SAL_FONTPATH=$sd_fonts/type1,$sd_fonts/75dpi
- XPPATH=$sd_inst/xp3
-
- unset XENVIRONMENT
-
- export SAL_FONTPATH XPPATH
-
- # execute soffice binary
- if [ -f $sd_inst/service/$sd_binary ]
- then
- exec $sd_inst/service/$sd_binary "$@"
- else
- exec $sd_inst/bin/$sd_binary "$@"
- fi
-
-