home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #
- # Sun Microsystems Printer Admin
- # (c) 1999, Sun Microsystems, Inc.
-
- current_dir=`dirname "$0"`
- cd "$current_dir"
- current_dir=`pwd`
- current_base=`basename "$0"`
- sd_binary=$current_base".bin"
-
- cd ..
- sd_inst=`pwd`
- cd "$current_dir"
-
- sd_fonts=$sd_inst/share/font
- sd_platform=`uname -s`
-
-
- # set search path for shared libraries
- case $sd_platform in
- SunOS)
- LD_LIBRARY_PATH="$sd_inst/program:/usr/openwin/lib:$LD_LIBRARY_PATH"
- export LD_LIBRARY_PATH
- ;;
-
- AIX)
- LIBPATH="$sd_inst/program:$LIBPATH"
- export LIBPATH
- ;;
-
- HP-UX)
- SHLIB_PATH="$sd_inst/program:/usr/openwin/lib:$SHLIB_PATH"
- export SHLIB_PATH
- ;;
- IRIX)
- LD_LIBRARYN32_PATH=":$sd_inst/program:$LD_LIBRARYN32_PATH"
- export LD_LIBRARYN32_PATH
- ;;
- *)
- LD_LIBRARY_PATH="$sd_inst/program:$LD_LIBRARY_PATH"
- export LD_LIBRARY_PATH
- ;;
- esac
-
- # misc. environment variables
- SAL_FONTPATH="$sd_fonts/type1,$sd_fonts/75dpi"
- XPPATH="$sd_inst/share/xp3"
-
- unset XENVIRONMENT
-
- export SAL_FONTPATH XPPATH
-
- # execute soffice binary
- exec "$sd_inst/program/$sd_binary" "$@"
-