home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2595 < prev    next >
Encoding:
Internet Message Format  |  1991-01-22  |  4.4 KB

  1. From: goer@quads.uchicago.edu (Richard L. Goerwitz)
  2. Newsgroups: alt.sources
  3. Subject: mtf, part 2 of 2
  4. Message-ID: <1991Jan21.000801.3639@midway.uchicago.edu>
  5. Date: 21 Jan 91 00:08:01 GMT
  6.  
  7.  
  8. ---- Cut Here and feed the following to sh ----
  9. #!/bin/sh
  10. # this is mtf.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. Xto leave unscathed by the mapping process (single-character extensions
  32. Xsuch as .c and .o are automatically preserved; -e allows the user to
  33. Xspecify additional extensions, such as .pxl, .cpi, and .icn).  The
  34. Xfinal switch, -x, precedes a list of strings which should not be
  35. Xmapped at all.  Use this switch if, say, you have a C file with a
  36. Xstructure.field combination such as "thisisveryverybig.hashptr" in an
  37. Xarchive that contains a file called "thisisveryverybig.h," and you
  38. Xwant to avoid mapping that portion of the struct name which matches
  39. Xthe name of the overlong file (to wit, "mtf inputfile -x
  40. Xthisisveryverybig.hashptr").  To prevent mapping of any string
  41. X(including overlong filenames) beginning, say, with "thisisvery," use
  42. X"mtf inputfile -x thisisvery."  Be careful with this option, or you
  43. Xmight end up defeating the whole point of using mtf in the first
  44. Xplace.
  45. X
  46. XBUGS:  Can't handle non-text files.  If any occur in the archive, mtf
  47. Xwill either abort, or perform a faulty conversion.  See the source
  48. Xfile for specifics.  Mtf is also annoyingly slow.
  49. X
  50. X---------------------------------------------------------------------
  51. XWhat is Icon?  Icon is the successor language to SNOBOL.  Like SNOBOL,
  52. XIcon has excellent string-processing facilities.  Unlike SNOBOL,
  53. Xthough, Icon has a modern, procedural structure, and offers control
  54. Xstructures like those offered by Algol-family languages.  Though Icon
  55. Xis not, strictly speaking, a declarative language, it nevertheless
  56. Xincorporates control, and optional data, backtracking, much like what
  57. Xwe find in languages like Prolog.  Awk programmers will feel at home
  58. Xwith Icon's hash tables, a data-type which implements associative
  59. Xarrays.  Programmers used to having storage handled automatically will
  60. Xhappily avail themselves of Icon's automatic garbage collection
  61. Xmechanisms.  Icon is not meant for low-level or hardware-specific
  62. Xtasks.  Instead, Icon is more of a general-purpose language good for
  63. Xrapid prototyping, and for extremely compact solution of string- and
  64. Xsymbol-processing problems.
  65. X
  66. XWhere can you get Icon?  It can be ftp'd from cs.arizona.edu.  Icon is
  67. Ximplemented on most personal computers, workstations, and many minis
  68. Xand mainframes.  Those without ftp access should write to icon-project
  69. Xat arizona.edu for more information.
  70. X
  71. XIcon is free (except for possible mailing/handling charges), supported
  72. Xmainly by contribution and government grant.  There is really no
  73. Xreason not to have a copy around.
  74. X
  75. X-Richard (goer@sophist.uchicago.edu)
  76. SHAR_EOF
  77. echo 'File README is complete' &&
  78. true || echo 'restore of README failed'
  79. rm -f _shar_wnt_.tmp
  80. fi
  81. # ============= Makefile.dist ==============
  82. if test -f 'Makefile.dist' -a X"$1" != X"-c"; then
  83.     echo 'x - skipping Makefile.dist (File already exists)'
  84.     rm -f _shar_wnt_.tmp
  85. else
  86. > _shar_wnt_.tmp
  87. echo 'x - extracting Makefile.dist (Text)'
  88. sed 's/^X//' << 'SHAR_EOF' > 'Makefile.dist' &&
  89. XPROGNAME = mtf
  90. X
  91. X# Please edit these to reflect your local file structure & conventions.
  92. XDESTDIR = /usr/local/bin
  93. XOWNER = bin
  94. XGROUP = bin
  95. X
  96. X# I hope you won't have to use this.
  97. XDEBUGFLAG = #-t
  98. X
  99. X$(PROGNAME): $(PROGNAME).icn
  100. X    icont $(DEBUGFLAG) $(PROGNAME).icn
  101. X
  102. X# Pessimistic assumptions regarding the environment (in particular,
  103. X# I don't assume you have the BSD "install" shell script).
  104. Xinstall: $(PROGNAME)
  105. X    @sh -c "test -d $(DESTDIR) || (mkdir $(DESTDIR) && chmod 755 $(DESTDIR))"
  106. X    cp $(PROGNAME) $(DESTDIR)/
  107. X    chgrp $(GROUP) $(DESTDIR)/$(PROGNAME)
  108. X    chown $(OWNER) $(DESTDIR)/$(PROGNAME)
  109. X    @echo "\nInstallation done.\n"
  110. X
  111. Xclean:
  112. X    -rm -f *.u
  113. X    -rm -f $(PROGNAME)
  114. SHAR_EOF
  115. true || echo 'restore of Makefile.dist failed'
  116. rm -f _shar_wnt_.tmp
  117. fi
  118. rm -f _shar_seq_.tmp
  119. echo You have unpacked the last part
  120. exit 0
  121.