1 .\"----------------------------------------------------------------------------
2 .\""THE BEER-WARE LICENSE" (Revision 42):
3 .\"<joerg@FreeBSD.org> wrote this file. As long as you retain this notice you
4 .\"can do whatever you want with this stuff. If we meet some day, and you think
5 .\"this stuff is worth it, you can buy me a beer in return. Joerg Wunsch
6 .\"----------------------------------------------------------------------------
8 .\" This manual page is partially obtained from Poul-Hennings CTM README
11 .\" CTM and ctm(1) by <phk@FreeBSD.org>
13 .\" $FreeBSD: src/usr.sbin/ctm/ctm/ctm.5,v 1.9.2.5 2003/03/12 22:08:14 trhodes Exp $
20 .Nd source code mirror system
24 transfers data in a specific file format, called a CTM delta.
26 CTM deltas consist of control lines and data chunks. Each control
27 line starts with the letters
29 followed by a CTM statement and control data, and ends with a '\en'
32 Data chunks always belong to the preceding control line, and the
33 last field on that control line is the number of bytes in the data
35 A trailing newline '\en' character follows each data chunk, this
36 newline is not part of the chunk and isn't included in the count.
38 The CTM statements are as follows.
39 .Bl -tag -width indent
40 .It _BEGIN Ar version name number timestamp prefix
41 This is the overall begin of a CTM delta file. The
43 field must match the program version
48 the sequence number of the CTM service, it is matched against the file
50 to see if the delta has already been applied.
52 contains the year, month, day, hour, minute, and second of the
53 time of delta creation for reference
54 (followed by the letter
56 meaning this is a UTC timestamp).
59 field is currently not implemented.
61 This statement ends the CTM delta, the global
63 checksum is matched against the MD5 checksum of the entire delta, up to
64 and including the space (0x20) character following ``_END''.
65 .It \&FM Ar name uid gid mode md5 count
68 the original file had the uid
82 bytes data are the contents of the new file.
83 .It \&FS Ar name uid gid mode md5before md5after count
84 Substitute the contents of file
86 the original file had the new uid
97 and the new MD5 checksum
102 bytes data are the contents of the new file.
104 File substitution is used if the commands to edit a file would exceed
105 the total file length, so substituting it is more efficient.
106 .It \&FN Ar name uid gid mode md5before md5after count
109 The arguments are as above, but the data sections contains an
111 -n script which should be applied to the file in question.
115 which must match the MD5 checksum
117 .It \&AS Ar name uid gid mode
126 .It \&DM Ar name uid gid mode
129 is to be created, it had originally the owner
141 In the following example, long lines have been folded to make them
143 (marked by backslashes).
145 CTM_BEGIN 2.0 cvs-cur 485 19950324214652Z .
146 CTMFR src/sys/gnu/i386/isa/scd.c,v 5225f13aa3c7e458f9dd0d4bb637b18d
147 CTMFR src/sys/gnu/i386/isa/scdreg.h,v e5af42b8a06f2c8030b93a7d71afb223
148 CTMDM src/sys/gnu/i386/isa/Attic 0 552 775
149 CTMFS .ctm_status 545 552 664 d9ccd2a84a9dbb8db56ba85663adebf0 \\
150 e2a10c6f66428981782a0a18a789ee2e 12
153 CTMFN CVSROOT/commitlogs/gnu 545 552 664 \\
154 5d7bc3549140d860bd9641b5782c002d 7fb04ed84b48160c9b8eea84b4c0b6e3 394
156 ache 95/03/24 09:59:50
158 Modified: gnu/lib/libdialog kernel.c prgbox.c
161 CTM_END 74ddd298d76215ae45a077a4b6a74e9c
168 Initial trials ran during the
171 methods were hashed out.
172 The CTM system has been made publicly available in
175 The CTM system has been designed and implemented by
176 .An Poul-Henning Kamp
177 .Aq phk@FreeBSD.org .
180 .Aq joerg@FreeBSD.org