home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume3 / rcsit / rcsit.1 < prev    next >
Encoding:
Text File  |  1986-11-30  |  4.7 KB  |  193 lines

  1. ...
  2. ... $Header: rcsit.1,v 1.7 85/11/26 16:57:21 mcooper Exp $
  3. ... 
  4. ... $Log:    rcsit.1,v $
  5. ... Revision 1.7  85/11/26  16:57:21  mcooper
  6. ... Noted changes to the -t option.
  7. ... 
  8. ... Revision 1.6  85/11/11  21:20:17  mcooper
  9. ... Added AUTHOR.
  10. ... 
  11. ... Revision 1.5  85/11/11  20:13:39  mcooper
  12. ... Added description of new Fortran recognition.
  13. ... 
  14. ... Revision 1.4  85/10/27  19:18:15  mcooper
  15. ... Cleaned up table display.
  16. ... 
  17. ... Revision 1.3  85/10/27  14:55:22  mcooper
  18. ... Added description of new template feature.
  19. ... 
  20. ... Revision 1.2  85/09/28  14:22:52  mcooper
  21. ... Documented new features of checkdir (symbolic
  22. ... linking and RCSDIR).
  23. ... 
  24. ... Revision 1.1  85/09/19  15:44:22  mcooper
  25. ... Initial revision
  26. ... 
  27. ...
  28. .TH RCSIT 1l
  29. .SH NAME
  30. rcsit \- A program to prepare files for RCS
  31. .SH SYNOPSIS
  32. rcsit
  33. [
  34. .B \-chfsmM
  35. ] [
  36. .B \-qad
  37. ] [
  38. \-I\fIflags\fR
  39. ] [
  40. \-R\fIflags\fR
  41. ] [
  42. \-t\fIdirectory\fR
  43. ]
  44. .B file
  45. [
  46. .B file1, file2, ...
  47. ]
  48. .SH DESCRIPTION
  49. .I Rcsit
  50. is a semi-intelligent program to prepare files for 
  51. .I rcs(1).
  52. This
  53. involves putting the correct type of headings at the top of the file so
  54. that 
  55. .I rcs(1)
  56. will update a header and log changes in the file.
  57. .PP 
  58. By default, 
  59. .I rcsit
  60. will use default headers ``hard-wired'' into itself for each different file
  61. type that it ``knows'' about.  (See below for list of known file types).
  62. .PP
  63. If the \-t\fIdirectory\fR option is specified, then
  64. .I rcsit
  65. will use ``.template.suffix'' files
  66. (where ``suffix'' is a suffix that 
  67. .I rcsit
  68. ``knows'' about)
  69. found in 
  70. .I directory.
  71. If a directory name is not specified on the command line, then
  72. the environment variable TEMPLATES is used.
  73. If $TEMPLATES is not set, then the environment varialble, HOME is tried.
  74. .LP
  75. The following template files are recognized:
  76. .sp 2
  77. .in 10
  78. .nf
  79.  Template Name               File Type
  80.  -------------------------------------------
  81.  .template.c                 Standard C
  82.  .template.h                 C Include
  83.  .template.f                 Fortran
  84.  .template.sh                Shell Script
  85.  .template.make              Makefile
  86.  .template.man               Manual
  87. .sp 2
  88. .in -10
  89. .fi
  90. .PP
  91. .I Rcsit
  92. is ``semi-intelligent'' in that it can guess the type of headers to put in
  93. the file by the type of file (C program, C include, makefile, shell script,
  94. or manual).
  95. It determines the file type by looking at the name of the file.
  96. If the name of the file is ``Makefile'' or ``makefile'', then the
  97. file type is taken to be for 
  98. .I make(1).
  99. The suffix after the last ``.'' in the file name is then used.
  100. The following table shows the suffixes that 
  101. .I rcsit
  102. knows about:
  103. .nf
  104. .sp 2
  105. .in 10
  106. Suffix         File Type
  107. ----------------------------------------
  108. c              C Program
  109. h              C Include
  110. f              Fortran
  111. mk             \fIMake(1)\fR file
  112. sh             Shell Script
  113. csh            Shell Script
  114. [1-9]          Manual (digits 1 - 9)
  115. .fi
  116. .PP
  117. If the environement variable ``RCSDIR'' is present, then 
  118. .I rcsit
  119. will attempt to make a symbolic link from it to ``RCS'' in
  120. the current directory if the \-\fII\fR option is used and
  121. there is no directory called ``RCS'' already, in the current
  122. directory.  
  123. If the \-\fII\fR option is used and ``RCSDIR'' is not specified
  124. in the environment, then a normal directory called ``RCS'' will be
  125. created.
  126. This feature can be overrided with the \-\fId\fR option.
  127. .SH OPTIONS
  128. .TP 10
  129. .B "c"
  130. Force file type to be ``Standard C''.
  131. .TP 10
  132. .B "h"
  133. Force file type to be ``C Include''.
  134. .TP 10
  135. .B "f"
  136. Force file type to be ``Fortran''.
  137. .TP 10
  138. .B "M"
  139. Force file type to be ``Manual''.
  140. Note: If you also specify the ``I\fIflags\fR'' option,
  141. .I rcsit
  142. will run 
  143. .I rcs(1)
  144. to tell rcs what kind of comment string to use for the manual file.
  145. .TP 10
  146. .B "s"
  147. Force file type to be ``Shell Script''.
  148. .TP 10
  149. .B "m"
  150. Force file type to be ``Makefile''.  Note that this does the same thing as
  151. the -s option does.  It just prints a different message.
  152. .TP 10
  153. .B "t"
  154. Do not use any Template files for the headers.
  155. .TP 10
  156. .B "q"
  157. Be quiet.  Don't print out what is going on.  Only error messages are
  158. printed.
  159. .TP 10
  160. .B "d"
  161. Do not attempt to make the directory ``RCS''.
  162. See above for more info.
  163. .TP 10
  164. .B "a"
  165. Turn off auto guessing of file type.
  166. .TP 10
  167. .B "I\fIflags\fR"
  168. Check In file.
  169. Run RCS's 
  170. .I ci(1)
  171. on the file with ``flags'' being passed onto 
  172. .I ci(1) 
  173. as the command line arguments.
  174. .TP 10
  175. .B "R\fIflags\fR"
  176. Run 
  177. .I rcs(1)
  178. with ``flags'' as the command line arguments.
  179. .SH FILES
  180. /tmp/rcsit*    - temporary buffer
  181. .br
  182. ~/.template.*   - template files to use as the header.
  183. .br
  184. .SH AUTHOR
  185. Michael Cooper (mcooper@usc-oberon.ARPA)
  186. .SH SEE ALSO
  187. ci(1), make(1), rcs(1)
  188. .SH DIAGNOSTICS
  189. Complains about the usual stuff.  (i.e. - the specified file doesn't exist,
  190. or it can't read it...just things like that.)
  191. .SH BUGS
  192. Acts oddly in the presence of beautiful women.
  193.