home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / alt / gopher / 1119 < prev    next >
Encoding:
Text File  |  1992-07-29  |  2.2 KB  |  60 lines

  1. Newsgroups: alt.gopher
  2. Path: sparky!uunet!convex!darwin.sura.net!wupost!usc!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!mudhoney!lindner
  3. From: lindner@mudhoney.micro.umn.edu (Paul Lindner)
  4. Subject: Re: Gopher and NeXT Digital Librarian Problem
  5. Message-ID: <1992Jul29.212016.22340@news2.cis.umn.edu>
  6. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  7. Nntp-Posting-Host: mudhoney.micro.umn.edu
  8. Organization: University of Minnesota, Minneapolis
  9. References: <Mailstrom.1.02b2.44752.-3114.heycke@sumex-aim.stanford.edu>
  10. Distribution: alt
  11. Date: Wed, 29 Jul 1992 21:20:16 GMT
  12. Lines: 46
  13.  
  14. In <Mailstrom.1.02b2.44752.-3114.heycke@sumex-aim.stanford.edu> heycke@sumex-aim.stanford.edu (Torsten Heycke) writes:
  15.  
  16. >We've found the Boolean operator search capability derived from using the NeXT's
  17. >Digital Librarian to index our gopher files to be useful. Unfortunately, we also
  18. >find that multiple directories of files result in recursive links in the gopher
  19. >directories (because DL apparently wants pathnames relative to the directory in
  20. >which the index resides). 
  21.  
  22. >Are there other Digital Librarian gopher users out there who have experienced
  23. >this? figured out a work-around?
  24.  
  25.  
  26. Here is a general purpose script that munges the pathnames correctly.
  27. Give it a try...
  28.  
  29. #!/bin/csh
  30.  
  31. #
  32. # A simple shell script that makes NeXT indexes of a directory with
  33. # the paths munged appropriately.
  34. #
  35. # Automatically makes a link for good measure too.
  36. #
  37.  
  38. set GopherHome = "/Gopher/IIC"
  39. set Data = "/Gopher/IIC/CSOM Information/MBA Program/Course Descriptions"
  40.  
  41. cd $GopherHome
  42.  
  43. mkdir /tmp/.index
  44. ln -s /tmp/.index "$GopherHome/.index"
  45. ixBuild -Vv -f text -i $GopherHome/.index/index.ixif "$Data"
  46. mv /tmp/.index/index.ixif "$Data/.index/"
  47. rm "$GopherHome/.index"
  48.  
  49. echo "Name=Index of this tree"  >"$Data/.IndexLink"
  50. echo "Type=7"             >"$Data/.IndexLink"
  51. echo "Path=7/$Data/.index"     >"$Data/.IndexLink"
  52. echo "Host=+"            >"$Data/.IndexLink"
  53. echo "Port=+"            >"$Data/.IndexLink"
  54.  
  55. --
  56.  | Paul Lindner | lindner@boombox.micro.umn.edu   | Slipping into madness
  57.  |              | Computer & Information Services | is good for the sake
  58.  | GopherMaster | University of Minnesota         | of comparision.
  59. ///// / / /    /////// / / / /  /  /  /   /      //// / / / /  /  /  /   /
  60.