home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume16 / mtf / part02 < prev    next >
Internet Message Format  |  1991-02-02  |  5KB

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