home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / extensions / test / InsPEX / startpex < prev    next >
Encoding:
Text File  |  1991-02-19  |  1.9 KB  |  70 lines

  1. #!/bin/sh
  2. #
  3. # $XConsortium: startpex,v 5.4 91/02/19 20:43:40 hersh Exp $
  4. #
  5. # Copyright 1990, 1991 by Sun Microsystems, Inc. and the X Consortium.
  6. #             All Rights Reserved
  7. # Permission to use, copy, modify, and distribute this software and its 
  8. # documentation for any purpose and without fee is hereby granted, 
  9. # provided that the above copyright notice appear in all copies and that
  10. # both that copyright notice and this permission notice appear in 
  11. # supporting documentation, and that the names of Sun Microsystems,
  12. # the X Consortium, and MIT not be used in advertising or publicity 
  13. # pertaining to distribution of the software without specific, written 
  14. # prior permission.  
  15. # SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 
  16. # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  17. # EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  18. # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  19. # USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  20. # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  21. # PERFORMANCE OF THIS SOFTWARE.
  22. #
  23. #    "Usage:  startpex DEVICE XRC_FILE [options]"
  24. #
  25.  
  26. XHOME=${XHOME:-../../..}
  27.  
  28. X=$XHOME/server/Xsun
  29. XPATH=/usr/bin/X11
  30. XCMD=xinit
  31.  
  32. #    This Env'var MUST be set to start up the PEX server extension right
  33. PEX_FONTPATH=$XHOME/extensions/fonts/PEX; export PEX_FONTPATH
  34.  
  35. XRGB=$XHOME/rgb/rgb
  36. XFONTHOME=$XHOME/fonts/bdf
  37. #XFONTS=$XFONTHOME/misc,$XFONTHOME/xview,$XFONTHOME/75dpi
  38. XFONTS=$XFONTHOME/misc,$XFONTHOME/75dpi
  39.  
  40. DEV=${1:-/dev/cgtwo0}
  41. if [ $# -ge 1 ]
  42. then
  43.     shift
  44. fi
  45. MONO=""
  46. if [ $DEV = /dev/bwtwo0 ]
  47. then
  48.     MONO="-mono"
  49. fi
  50.  
  51. XRC=${1:-$HOME/.xrc}
  52. if [ $# -ge 1 ]
  53. then
  54.     shift
  55. fi
  56.  
  57. PATH=$PATH:$XPATH; export PATH
  58.  
  59. #clear
  60. #  Yow!  What a hack!  (But it helps with SunView cut&paste!)
  61.  
  62. WINDOW_PARENT=/dev/win0; export WINDOW_PARENT
  63.  
  64. unset WINDOW_PARENT
  65. exit
  66.