home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3002 < prev    next >
Internet Message Format  |  1991-03-06  |  4KB

  1. From: goer@ellis.uchicago.edu (Richard L. Goerwitz)
  2. Newsgroups: alt.sources
  3. Subject: jargon index, part 02 of 02
  4. Message-ID: <1991Mar6.165240.12794@midway.uchicago.edu>
  5. Date: 6 Mar 91 16:52:40 GMT
  6.  
  7.  
  8. ---- Cut Here and feed the following to sh ----
  9. #!/bin/sh
  10. # this is jargon.02 (part 2 of a multipart archive)
  11. # do not concatenate these parts, unpack them in order with /bin/sh
  12. # file README continued
  13. #
  14. if test ! -r _shar_seq_.tmp; then
  15.     echo 'Please unpack part 1 first!'
  16.     exit 1
  17. fi
  18. (read Scheck
  19.  if test "$Scheck" != 2; then
  20.     echo Please unpack part "$Scheck" next!
  21.     exit 1
  22.  else
  23.     exit 0
  24.  fi
  25. ) < _shar_seq_.tmp || exit 1
  26. if test ! -f _shar_wnt_.tmp; then
  27.     echo 'x - still skipping README'
  28. else
  29. echo 'x - continuing file README'
  30. sed 's/^X//' << 'SHAR_EOF' >> 'README' &&
  31. Xkey/value combinations from a file (rather than from a hash table in
  32. Xmemory).  Often the practicalities of memory usage lead one to avoid
  33. Xhuge in-core hash tables.  The gettext package provides a small-scale,
  34. Xbut fairly efficient, alternative.
  35. X
  36. X-------
  37. X
  38. XProblems:
  39. X
  40. XThis program works fine on a Xenix/386 box.  Your mileage may vary.
  41. XIf there are problems, I'd like to hear about them.  Send mail to:
  42. X
  43. XRichard Goerwitz (goer@sophist.uchicago.edu)
  44. X
  45. SHAR_EOF
  46. echo 'File README is complete' &&
  47. true || echo 'restore of README failed'
  48. rm -f _shar_wnt_.tmp
  49. fi
  50. # ============= Makefile.dist ==============
  51. if test -f 'Makefile.dist' -a X"$1" != X"-c"; then
  52.     echo 'x - skipping Makefile.dist (File already exists)'
  53.     rm -f _shar_wnt_.tmp
  54. else
  55. > _shar_wnt_.tmp
  56. echo 'x - extracting Makefile.dist (Text)'
  57. sed 's/^X//' << 'SHAR_EOF' > 'Makefile.dist' &&
  58. X# Don't change this unless you're absolutely sure of what you're doing.
  59. XPROGNAME = jargon
  60. X
  61. X# You may need to change these.
  62. XICONC = /usr/icon/v8/bin/icont
  63. XJARGONFILE = jargon.ascii
  64. X
  65. X# Please edit these to reflect your local file structure & conventions.
  66. XDESTDIR = /usr/local/bin
  67. XLIBDIR = /usr/local/lib/$(PROGNAME)
  68. XOWNER = bin
  69. XGROUP = bin
  70. X
  71. X# I hope you won't have to use this.
  72. XDEBUGFLAG = #-t
  73. X
  74. XSHELL = /bin/sh
  75. X# Source files for $(PROGNAME).
  76. XSRC1 = $(PROGNAME).icn gettext.icn adjuncts.icn
  77. X
  78. Xall: jargon.wrd $(PROGNAME)
  79. X    @echo "\nEverything seems OK.  Go ahead & install.\n"
  80. X
  81. Xjargon.wrd: jarg2get idxtext
  82. X    test -f $(JARGONFILE)
  83. X    ./jarg2get < $(JARGONFILE) > jargon.wrd
  84. X    @echo "\nThis may take a few minutes:\n"
  85. X    ./idxtext jargon.wrd
  86. X
  87. X$(PROGNAME): $(SRC1)
  88. X    $(ICONC) $(DEBUGFLAG) -o $@ $?
  89. X
  90. Xidxtext: idxtext.icn adjuncts.icn
  91. X    $(ICONC) $(DEBUGFLAG) -o $@ $?
  92. X
  93. Xjarg2get: jarg2get.icn
  94. X    $(ICONC) $(DEBUGFLAG) -o $@ $?
  95. X
  96. X
  97. X# Set pathnames to their correct values for this system.
  98. X$(PROGNAME).icn:
  99. X    sed "s|/usr/local/lib/$(PROGNAME)/jargon.wrd|$(LIBDIR)/jargon.wrd|g" < jargon.src > jargon.icn
  100. X
  101. X# Pessimistic assumptions regarding the environment (in particular,
  102. X# I don't assume you have the BSD "install" shell script).
  103. Xinstall: all
  104. X    test -d $(DESTDIR) || (mkdir $(DESTDIR) && chmod 755 $(DESTDIR))
  105. X    cp $(PROGNAME) $(DESTDIR)/
  106. X    chgrp $(GROUP) $(DESTDIR)/$(PROGNAME)
  107. X    chown $(OWNER) $(DESTDIR)/$(PROGNAME)
  108. X    test -d $(LIBDIR) || (mkdir $(LIBDIR) && chmod 755 $(LIBDIR))
  109. X    cp jargon.wrd $(LIBDIR)/
  110. X    chgrp $(GROUP) $(LIBDIR)/jargon.wrd
  111. X    chown $(OWNER) $(LIBDIR)/jargon.wrd
  112. X    @echo "\nThis may take a few minutes:\n"
  113. X    ./idxtext $(LIBDIR)/jargon.wrd
  114. X    chgrp $(GROUP) $(LIBDIR)/*IDX
  115. X    chown $(OWNER) $(LIBDIR)/*IDX
  116. X    ./$(PROGNAME) zork
  117. X    @echo "\nEverything checks out OK.  Installation done.\n"
  118. X
  119. Xclean:
  120. X    -rm -f core *~ .u? *.IDX $(PROGNAME)
  121. X
  122. Xclobber: clean
  123. X    echo "Be careful in answering the following rm queries!"
  124. X    -rm -i $(PROGNAME).icn jargon.wrd
  125. X
  126. SHAR_EOF
  127. true || echo 'restore of Makefile.dist failed'
  128. rm -f _shar_wnt_.tmp
  129. fi
  130. rm -f _shar_seq_.tmp
  131. echo You have unpacked the last part
  132. exit 0
  133.