home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 19 / AACD19.BIN / AACD / Programming / cvs-1.11 / README.AMIGA < prev    next >
Text File  |  2001-02-03  |  10KB  |  209 lines

  1. CVS 1.11 Amiga port
  2. ===================
  3.  
  4. Introduction
  5. ------------
  6. This is a somewhat rough port of GNU CVS 1.11, a version control system, which
  7. allows you to keep old versions of files (usually source code), keep a log of
  8. who, when, and why changes occurred, etc., like RCS or SCCS. It handles
  9. multiple developers, multiple directories, triggers to enable/log/control
  10. various operations, and can work over a wide area network. The following tasks
  11. are not included; they can be done in conjunction with CVS but will tend to
  12. require some script-writing and software other than CVS: bug-tracking, build
  13. management (that is, make and make-like tools), and automated testing. (Quoted
  14. from the CVS documentation.)
  15.  
  16. I call this a 'rough port' since it is not as polished as, say Heinz Wrobel's
  17. excellent 'RCS' port. It does what it needs to do, but a few features are
  18. sorely lacking, such as support for Amiga file protection bits and code to
  19. communicate with CVS servers via secure channels (Kerberos, SSH). On the other
  20. hand, however, you get everything, and perhaps more, you got with the previous
  21. Amiga ports of CVS: this port does not require 'ixemul.library' to work and it
  22. does not require an RCS installation as it is completely self contained. The
  23. port also probably would win a price as the largest 'pure' executable; it can
  24. be made resident.
  25.  
  26.  
  27. What's in this package?
  28. -----------------------
  29. This distribution contains the Amiga port, the Amiga specific source code and
  30. most of the original GNU CVS 1.11 distribution. 'Most' in this case means that
  31. only the original source code has been omitted in order to keep the
  32. distribution archive small; the documentation and support files are all
  33. provided. The original source code can be downloaded from the Internet at
  34. 'ftp://ftp.cvshome.org/pub/cvs-1.11/cvs-1.11.tar.gz'. I have added two more
  35. files which are converted from the original Unix man pages, namely 'cvs.1.man'
  36. and 'cvs.5.man' whose sources can be found in the 'cvs-1.11/man' directory.
  37.  
  38.  
  39. Installation
  40. ------------
  41. Almost everything you need to get CVS up and running is contained in the
  42. archive which also included the 'README.AMIGA' file you are currently reading.
  43. And that means the 'cvs' executable. You will also need a working
  44. 'queue-handler' (the one that ships with Workbench 3.1 and beyond is,
  45. unfortunately, broken) which can be found on Aminet (you can find the archive
  46. at 'http://us.aminet.net/pub/aminet/util/sys/HWGQueue.lha'). A TCP/IP stack
  47. like Miami or AmiTCP is supported by not strictly required: you can perfectly
  48. well keep your CVS repository on your local machine. Since CVS may ask you to
  49. edit the log entries associated with the files to store, you may want to
  50. configure the 'EDITOR' environment variable. Last, but not least, you must set
  51. up an environment variable which allows CVS to associate you with the changes
  52. you made; this should be the 'USER', 'LOGUSER' or 'USERNAME' variable.
  53.  
  54. Most importantly, this port requires Kickstart 2.04 or higher.
  55.  
  56. Here is how you could set up CVS on your machine. We start by creating two
  57. drawers on the 'Work:' volume:
  58.  
  59.    MakeDir Work:CVS-Root
  60.    MakeDir Work:CVS-Home
  61.  
  62. Next, we add two lines to the 'S:User-Startup' file:
  63.  
  64.    Assign CVSHOME: Work:CVS-Home
  65.    Path CVSHOME: Add
  66.  
  67. The CVS program will need to be copied:
  68.  
  69.    Copy cvs Work:CVS-Home CLONE
  70.  
  71. And the path to the CVS repository needs to be set:
  72.  
  73.    SetEnv CVSROOT :local:Work:CVS-Root
  74.    Copy ENV:CVSROOT ENVARC:
  75.  
  76. Two environment variables need to be set up. Most importantly, CVS will need
  77. your ID to write it into the log and revision files it creates. The Amiga port
  78. will query three environment variables for that information, in the following
  79. order: 'USER', 'LOGUSER' and 'USERNAME'. This means if the variable 'USER' is
  80. not set, it will proceed to check whether 'LOGUSER' is set, and so forth. You
  81. may have already configured these variables, but if you haven't, I suggest you
  82. set up the 'LOGUSER' variable, like this:
  83.  
  84.    SetEnv LOGUSER <Your ID here>
  85.    Copy ENV:LOGUSER ENVARC:
  86.  
  87. Note that <Your ID here> should be replaced by a mnemonic, nick name or short
  88. name that must not contain any blank space characters.
  89.  
  90. You may want to configure the 'EDITOR' environment variable to invoke your
  91. preferred text editor when CVS requests that log messages are added for an
  92. update. If this variable is not set, CVS will default to invoke the 'Ed'
  93. editor. This can be problematic if you have installed 'CygnusEd' whose 'Ed'
  94. program detaches from the Shell that invoked it. When CVS invokes the editor,
  95. it expects it to return only when the user has finished editing the respective
  96. file. Here is an example configuration for CygnusEd:
  97.  
  98.    SetEnv EDITOR Ed -keepio
  99.  
  100. And here is one for TurboText:
  101.  
  102.    SetEnv EDITOR TTX WAIT
  103.  
  104. Don't forget to save the environment variable setting to make it permanent,
  105. like this:
  106.  
  107.    Copy ENV:EDITOR ENVARC:
  108.  
  109. Finally, install the 'queue-handler' from Aminet and reboot your machine. When
  110. the system is again up and running, initialize the CVS repository like this:
  111.  
  112.    cvs init
  113.  
  114. And that's all. Well, maybe you want to add a few default options to the
  115. configuration file CVS reads upon startup. That file should be placed in the
  116. 'CVSHOME:' directory and called '.cvsrc':
  117.  
  118.  
  119. Usage
  120. -----
  121. I personally found the default CVS documentation to be rather confusing. If
  122. you don't know rather well what CVS is good for, the examples, the
  123. terminology, all this doesn't seem to make great sense. My introduction to CVS
  124. followed with Karl Fogel's book "Open Source Development with CVS" which
  125. describes in compact form what CVS is and how it may be used. I suggest that
  126. you consult the book (portions of which are available from 'www.coriolis.com')
  127. and/or the CVS documentation (which has been included with this archive in the
  128. 'cvs-1.11/doc' drawer) for hints and ideas on how to use the program.
  129.  
  130. What many people fail to realize and what keeps them from using CVS in place
  131. of the revision control system they have used for years is that you do not
  132. need a networked CVS repository in order to use CVS. A local repository will
  133. do. In fact, I switched over most of my current software development projects
  134. to use a single local repository after I realized that CVS does much better
  135. what I had previously used RCS for.
  136.  
  137.  
  138. Notes on the implementation
  139. ---------------------------
  140. The Amiga port implements only the client side of the CVS system. This means
  141. that you can check out projects on remote servers but your local Amiga cannot
  142. be a CVS server itself. This feature was omitted deliberately since I could
  143. not find a safe and useful way to make CVS server mode work on the Amiga.
  144. AmigaOS is not a server operating system and shoehorning the code to make it
  145. work somehow would not have helped. If you need a CVS server, try a dedicated
  146. solution using, for example, 'NetBSD'. The Amiga port can communicate with the
  147. server using the remote shell protocol (rsh), and I have verified that the
  148. process works reasonably well with, for example, the public 'Samba' CVS
  149. repository. If you need a more secure method to communicate with the server
  150. ('rsh' is notoriously insecure and many systems no longer support it for
  151. precisely that reason) such as 'Kerberos IV' or 'Secure Shell' (ssh), you'll
  152. have a problem because there are no Amiga ports of these facilities available
  153. yet.
  154.  
  155. CVS does not have a very sophisticated porting layer. Its file name semantics
  156. all stem from the Unix world and the 'OS/2', 'VMS' and 'Windows NT' ports
  157. merely resort to flipping slashes in file names, if necessary when it comes to
  158. make a name fit the local system's semantics. I had to find a similar way to
  159. make the semantics work on the Amiga. What I did was to add a translation
  160. service in the Amiga specific code which knows how to translate names like '.'
  161. or '..'. But that's where it ends. Any more sophisticated naming schemes like
  162. 'foo/.././bar' may fail to translate properly. But then, those complex
  163. patterns should be pretty rare anyway.
  164.  
  165. Unlike Heinz Wrobel's excellent 'RCS' port, this CVS port does not preserve
  166. Amiga file protection bits for files checked in. When you check in a project
  167. and check it out again, all file and directory protection bits will default to
  168. 'rwed', losing the 'archived', 'pure' and 'script' bits.
  169.  
  170. The Amiga port will expand wild card patterns for file and directory names
  171. specified as command line parameters, such as "#?.c". The wild card pattern
  172. syntax is that of AmigaDOS. It is *not* the syntax of the standard regular
  173. expressions other GNU tools will use.
  174.  
  175. You can access remote CVS repositories by means of a properly configured
  176. TCP/IP stack. This port requires that the stack complies to the AmiTCP V3 API
  177. definition, which all modern Amiga TCP/IP stacks do. It does not work with the
  178. INet-225 TCP/IP stack, though.
  179.  
  180. When CVS resorts to calling external programs, a working 'PIPE:' device is
  181. required, which is not yet part of the AmigaOS Workbench distribution. Do not
  182. underestimate this. The program will fail or behave erratically without a
  183. working 'PIPE:' device. It is strongly recommended to download a working
  184. 'queue-handler', such as from Aminet.
  185.  
  186. The source code for the Amiga port is included in this distribution. All you
  187. need to know before you can recompile this CVS port is described in the file
  188. 'README.AMIGA' which you can find in the 'source' directory.
  189.  
  190. This is a 'single user' CVS port. There is just one single home directory
  191. (referred to as 'CVSHOME:') and your login name and ID are assumed to be the
  192. same (set in the 'USER', 'LOGUSER' or 'USERNAME' environment variables).
  193.  
  194. There is no 'cvsbug' shell script or program included with this port.
  195.  
  196.  
  197. Contacting the author
  198. ---------------------
  199. If you have any further questions on this port, feel free to contact me:
  200.  
  201.    olsen@sourcery.han.de
  202.  
  203. Or use my postal address:
  204.  
  205.    Olaf Barthel
  206.    Brabeckstr. 35
  207.    D-30559 Hannover
  208.    Federal Republic of Germany
  209.