home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 December / Chip_2000-12_cd1.bin / tema / starof / f_0065 / spadmin
Text File  |  2000-04-27  |  1KB  |  56 lines

  1. #!/bin/sh
  2. #
  3. # Sun Microsystems Printer Admin
  4. # (c) 1999, Sun Microsystems, Inc.
  5.  
  6. current_dir=`dirname "$0"`
  7. cd "$current_dir"
  8. current_dir=`pwd`
  9. current_base=`basename "$0"`
  10. sd_binary=$current_base".bin"
  11.  
  12. cd ..
  13. sd_inst=`pwd`
  14. cd "$current_dir"
  15.  
  16. sd_fonts=$sd_inst/share/font
  17. sd_platform=`uname -s`
  18.  
  19.  
  20. # set search path for shared libraries
  21. case $sd_platform in
  22.   SunOS)
  23.     LD_LIBRARY_PATH="$sd_inst/program:/usr/openwin/lib:$LD_LIBRARY_PATH"
  24.     export LD_LIBRARY_PATH
  25.     ;;
  26.  
  27.   AIX)
  28.     LIBPATH="$sd_inst/program:$LIBPATH"
  29.     export LIBPATH
  30.     ;;
  31.  
  32.   HP-UX)
  33.     SHLIB_PATH="$sd_inst/program:/usr/openwin/lib:$SHLIB_PATH"
  34.     export SHLIB_PATH
  35.     ;;
  36.    IRIX)
  37.     LD_LIBRARYN32_PATH=":$sd_inst/program:$LD_LIBRARYN32_PATH"
  38.     export LD_LIBRARYN32_PATH
  39.     ;;
  40.       *)
  41.     LD_LIBRARY_PATH="$sd_inst/program:$LD_LIBRARY_PATH"
  42.     export LD_LIBRARY_PATH
  43.     ;;
  44. esac
  45.  
  46. # misc. environment variables
  47. SAL_FONTPATH="$sd_fonts/type1,$sd_fonts/75dpi"
  48. XPPATH="$sd_inst/share/xp3"
  49.  
  50. unset XENVIRONMENT
  51.  
  52. export SAL_FONTPATH XPPATH
  53.  
  54. # execute soffice binary
  55. exec "$sd_inst/program/$sd_binary" "$@"
  56.