home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / gofer230.zip / Progs / Gofer / Scripts / gofer next >
Text File  |  1994-06-23  |  1KB  |  38 lines

  1. #!/bin/sh
  2. #
  3. # A simple shell script to invoke the Gofer interpreter and set the
  4. # path to the prelude file.  Ultimately, you might want to copy this
  5. # file into your own bin directory so that you can record your
  6. # favourite command line settings or use a different prelude file ...
  7. #
  8. # Mark Jones, last modified March 1993
  9. # Edited by Jonathan Bowen, Oxford University, August 1993
  10.  
  11. # Location of gofer files - site specific
  12. ROOT=/usr/local/gofer
  13.  
  14. # first, the location of your prelude file:
  15. GOFER=${GOFER-$ROOT/lib/standard.prelude}
  16. export GOFER
  17.  
  18. # next, command line argument settings.  One example might be:
  19. # "-pGofer: -rit -s +k" but I just stick with the defaults
  20. # here:
  21. GOFERARGS=${GOFERARGS-""}
  22.  
  23. # The next few lines try to guess a suitable setting for the EDITLINE
  24. # variable.  If your favourite editor is not dealt with here, or if
  25. # the version of sh that I'm using is incompatible with every other
  26. # shell out there, you may need to modify (or remove) this section:
  27. #
  28. EDIT=${VISUAL-${EDITOR-/usr/ucb/vi}}
  29. case `basename $EDIT` in
  30.     emacs | vi | elvis )  EDITLINE="$EDIT +%d %s"; export EDITLINE ;;
  31.     none               )  ;;
  32.     *                  )  EDITLINE=$EDIT; export EDITLINE ;;
  33. esac
  34.  
  35. # Finally, start the interpreter running:
  36. # exec /usr/local/lib/Gofer/gofer $GOFERARGS $*
  37. exec $ROOT/bin/Gofer $GOFERARGS $*
  38.