home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1303 < prev    next >
Encoding:
Internet Message Format  |  1990-12-28  |  7.1 KB

  1. From: davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr)
  2. Newsgroups: alt.sources
  3. Subject: shar2 man pages
  4. Message-ID: <2242@crdos1.crd.ge.COM>
  5. Date: 10 May 90 11:50:52 GMT
  6.  
  7.  
  8.   Here are the man pages for shar2. I have tried to send them to the
  9. author of shar3, but his mailer doesn't like him as
  10. wht@n4hgf.gatech.edu. Here they are, perhaps he will modify them for
  11. shar3, and if not they are still a lot better than no man pages at all.
  12.  
  13. [ this is the rejection notice ]
  14.  
  15. --- Forwarded mail from anonymous
  16.  
  17. >From anonymous Wed May  9 13:06:13 1990
  18. Date: Wed, 9 May 90 13:05:18 EDT
  19. >From: exos:MAILER-DAEMON@gatech.edu
  20. Subject: Returned mail: Service unavailable
  21. To: davidsen
  22.  
  23.    ----- Transcript of session follows -----
  24. >>> HELO gatech.edu
  25. <<< 553 gatech.edu I refuse to talk to myself
  26. 554 <wht@n4hgf.gatech.edu>... Service unavailable: Bad file number
  27.  
  28.    ----- Unsent message follows -----
  29. Received: from CRDGW1.GE.COM by gatech.edu (5.58/GATECH-8.6)
  30.     id AA14023 for ; Wed, 9 May 90 12:59:27 EDT
  31. Received:  by crdgw1.ge.com (5.57/Ultrix-3.0 1.67)
  32.      id AA06324; Wed, 9 May 90 12:57:20 EDT
  33. Received: by crdos1 id <6484C6D370@crdos1>;
  34.        Wed,  9 May 90 12:59:27 EDT
  35. Message-Id: <6484C6D370@crdos1>
  36. Reply-To: davidsen@crdos1.crd.ge.com
  37. Organization: GE Corporate R&D Center
  38. Date: Wed, 9 May 90 12:59:23 EDT
  39. X-Mailer: Mail User's Shell (6.5 4/17/89)
  40. >From: davidsen@crdos1.crd.ge.com
  41. To: wht@n4hgf.gatech.edu
  42. Subject: Man pages for shar2
  43.  
  44.   Sorry these are delayed, I didn't have them on sixhub. You can add
  45. info on your new stuff and send it out with the next update to
  46. alt.sources.
  47.  
  48. #!/bin/sh
  49. # shar:    Shell Archiver  (v1.27)
  50. #
  51. #    Run the following text with /bin/sh to create:
  52. #      shar2.1
  53. #      unshar.1
  54. #
  55. echo "x - extracting shar2.1 (Text)"
  56. sed 's/^X//' << 'SHAR_EOF' > shar2.1 &&
  57. X'\" must be run through 'tbl' as well as nroff
  58. X.TH SHAR2 1 local
  59. X.SH NAME
  60. Xshar2 - create shell archives
  61. X.SH SYNOPSIS
  62. Xshar2 [ options ] files
  63. X.SH DESCRIPTION
  64. Xshar2 creates "shell archives" (or shar files) which are in text format
  65. Xand can be mailed. These files may be unpacked later by executing them
  66. Xwith /bin/sh.
  67. X.SS Options
  68. X.TS
  69. Xtab(;);
  70. Xlb lw(50).
  71. X-v;T{
  72. Xverbose. This option causes a running commentary as the archive is
  73. Xcreated, and another as it is unpacked. This option does not control the
  74. Xerror messages, only the informational messages.
  75. XT}
  76. X
  77. X-s;T{
  78. Xsum. The files are tested with the \fIsum\fR command for damage in
  79. Xtransit. Errors are reported.
  80. XT}
  81. X
  82. X-x;T{
  83. Xdon't overwrite existing files. The unpack will check for an existing
  84. Xfile before unpacking a given file from the archive.
  85. XT}
  86. X
  87. X-b;T{
  88. Xbinary. This option causes all files to be treated as binary files, and
  89. Xthe files are changed to text using \fIuuencode\fR. Commands are
  90. Xembedded in the output files to change use uudecode and recreate the
  91. Xbinary files.
  92. XT}
  93. X
  94. X-M;T{
  95. Xmixed text and binary.  This option causes each file to be
  96. Xexamined to determine if it is text or data.  Binary files will be
  97. Xprocessed using uuencode.
  98. XT}
  99. X
  100. X-D;T{
  101. Xgive detail of archive. The date, user, and working directory are added
  102. Xto the archive as comments.
  103. XT}
  104. X
  105. X-c;T{
  106. Xproduce cut line. This option causes a line saying "cut\ here" to be
  107. Xplaced at the start of each output file. This is for sites not offering
  108. Xthe \fIunshar\fR command or shell script.
  109. XT}
  110. X
  111. X-f;T{
  112. Xfilename only. By default the entire path name is used as given on the
  113. Xcommand line. This option causes only the file names to be used, which
  114. Xis useful when building a shar from several directories, or another
  115. Xdirectory.
  116. XT}
  117. X
  118. X-dXXX;T{
  119. Xchange delimiter to XXX. The default delimiter is SHAR_EOF, placed at
  120. Xthe end of each file. This option is left for historical reasons, to
  121. Xamuse those who want their shar files to be personalized.
  122. XT}
  123. X
  124. X-o\fIfile\fR;T{
  125. Xoutput filename. The file \fIfile\fR is used for output instead of the
  126. Xstandard output. This option is required to use the \fB-l\fR (limit
  127. Xfilesize) option.
  128. XT}
  129. X
  130. X-l\fInum\fR;T{
  131. Xfile size limit. The output files created by \fIshar2\fR will be smaller
  132. Xthan \fInum\fRk in length. The \fB-o\fR option must be used to specify
  133. Xan output filename, and the digits 00 through 99 will be appended to
  134. Xform a series of output filenames. Informative messages and sequence
  135. Xchecking are included.
  136. XT}
  137. X.TE
  138. X.SH EXAMPLES
  139. X'\"  examples use spaces, not tabs
  140. X  shar2 *.c > cprog.shar        # all C prog sources
  141. X  shar2 -v *.[ch] > cprog.shar  # verbose, .c and .h files
  142. X  shar2 -b -l28 -oarc.sh *.arc  # all binary .arc files, into
  143. X                                # files arc.sh01 thru arc.shNN
  144. X  shar2 -f /lcl/src/u*.c > u.sh    # use only the filenames
  145. X.SH WARNINGS
  146. XUse of the \fB-s\fR, \fB-b\fR, and \fB-M\fR options will slow the
  147. Xarchive process considerably, depending on the number of files.
  148. X.SH FILES
  149. XTemp files ._temp_ and ._seq_ are created and delted as needed.
  150. X.SH SEE ALSO
  151. Xunshar or unshar.sh.
  152. X.SH DIAGNOSTICS
  153. XError messages for missing or unaccessable files.
  154. X.SH LIMITATIONS
  155. XDoes not chase directory names, limited to the number of names on a
  156. Xcommand line. Uses the \fIfile\fR command to determine file type, may be
  157. Xaffected by its limitations. The -D option calls the \fIdate\fR,
  158. X\fIwho\ am\ i\fR, and \fIpwd\fR commands, and will produce garbage if
  159. Xthey are not present.
  160. X.sp
  161. XRequires the \fIuudecode\fR program to unpack binary files. On some
  162. Xsystems, such as Sun, this program requires world write on the current
  163. Xdirectory.
  164. X.sp
  165. XThe first file archived may not have a name starting with a hyphen, and
  166. Xif the file type is being set manually (-p) no file may be named
  167. X\fB-t\fR or \fB-b\fR. Option parsing should be done with getopt.
  168. X.SH AUTHOR
  169. XBill Davidsen, (davidsen@sixhub.uucp).
  170. X.SH COPYRIGHT
  171. XCopyright 1988 by Bill Davidsen. This program and documentation may be
  172. Xused by any person for any purpose.
  173. SHAR_EOF
  174. chmod 0666 shar2.1 || echo "restore of shar2.1 fails"
  175. echo "x - extracting unshar.1 (Text)"
  176. sed 's/^X//' << 'SHAR_EOF' > unshar.1 &&
  177. X'\" xxx
  178. X.TH UNSHAR 1 local
  179. X'\" Heading: name(sect)    center (paren)    name(sect)
  180. X.SH NAME
  181. Xunshar - unpack a shar file
  182. X.SH SYNOPSIS
  183. Xunshar file [ file [ file ] ]
  184. X.SH DESCRIPTION
  185. Xunshar scans mail messages looking for the start of a shell archive. It
  186. Xthen passes the archive through a copy of the shell to unpack it. It
  187. Xwill accept multiple files.
  188. X.SH EXAMPLES
  189. X  unshar msg4
  190. X  unshar msg4.*
  191. X.SH WARNINGS
  192. XIf a line in the introduction starts with a ':' or '#' unshar will
  193. Xbecome confused.
  194. X.SH FILES
  195. X.SH SEE ALSO
  196. Xshar, shar2.
  197. X.SH DIAGNOSTICS
  198. XAny message from the shell may be displayed.
  199. X.SH LIMITATIONS
  200. XProblems will occur if the shar file does not end with an exit command. 
  201. X.SH AUTHOR
  202. XBill Davidsen (davidsen@sixhub)
  203. X.SH COPYRIGHT
  204. XCopyright 1988 by Bill Davidsen. This program may be used by any person
  205. Xfor any purpose.
  206. SHAR_EOF
  207. chmod 0666 unshar.1 || echo "restore of unshar.1 fails"
  208. exit 0
  209.  
  210. -- 
  211. bill davidsen    (davidsen@crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen)
  212.             "Stupidity, like virtue, is its own reward" -me
  213.  
  214.  
  215. --- End of forwarded message from anonymous
  216.  
  217.  
  218. -- 
  219. bill davidsen    (davidsen@crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen)
  220.             "Stupidity, like virtue, is its own reward" -me
  221.