diff --git a/handbook/ctm.sgml b/handbook/ctm.sgml index 56729a4c13..fdf81f112d 100644 --- a/handbook/ctm.sgml +++ b/handbook/ctm.sgml @@ -3,7 +3,7 @@ # # Converted by Ollivier Robert # -# $Id: ctm.sgml,v 1.19 1997-06-02 16:42:21 max Exp $ +# $Id: ctm.sgml,v 1.20 1997-08-11 13:36:04 eivind Exp $ # # ---------------------------------------------------------------------------- # "THE BEER-WARE LICENSE" (Revision 42): @@ -16,7 +16,7 @@ CTM -

Contributed by &a.phk;. Updated 16-Mar-1995. +

Contributed by &a.phk;. Updated 31-July-1997. Using -

To apply the deltas, simply say - - cd /where/ever/you/want/the/stuff - ctm -v -v /where/you/store/your/deltas/src-cur.* - +

+ To apply the deltas, simply say: + +cd /where/ever/you/want/the/stuff +ctm -v -v /where/you/store/your/deltas/src-cur.* + +

Keeping your local changes +

+ As a developer one would like to experiment with and change + files in the source tree. CTM supports local modifications in a + limited way: before checking for the presence of a file + foo, it first looks for foo.ctm. If this + file exists, CTM will operate on it instead of foo. +

+ This behaviour gives us a simple way to maintain local changes: + simply copy the files you plan to modify to the corresponding + file names with a .ctm suffix. Then you can freely hack + the code, while CTM keeps the .ctm file upto-date. + + Other interesting CTM options + Finding out exactly what would be touched by an update +

+ You can determine the list of changes that CTM will make on your + source repository using the ``-l'' option to CTM. +

+ This is useful if you would like to keep logs of the changes, + pre- or post- process the modified files in any manner, or just + are feeling a tad paranoid :-). - Future plans for + Making backups before updating +

+ Sometimes you may want to backup all the files that would be changed + by a CTM update. +

+ Specifying the ``-B backup-file'' option causes + CTM to backup all files that would be touched by a given CTM + delta to backup-file. + + Restricting the files touched by an update +

+ Sometimes you would be interested in restricting the scope of a + given CTM update, or may be interested in extracting just a few + files from a sequence of deltas. +

+ You can control the list of files that CTM would operate on by + specifying filtering regular expressions using the + ``-e'' and ``-x'' options. +

+ For example, to extract an upto-date copy of + lib/libc/Makefile from your collection of saved CTM deltas, + run the commands: + +cd /where/ever/you/want/to/extract/it/ +ctm -e '^lib/libc/Makefile' ~ctm/src-cur.* + +

+ For every file specified in a CTM delta, the ``-e'' and + ``-x'' options are applied in the order given on the + command line. The file is processed by CTM only if it is + marked as eligible after all the ``-e'' and + ``-x'' options are applied to it. + + Future plans for

Tons of them: - Make local modifications to the tree possible. One way to do - it could be this:

When foo/bar.c'', it would first check for the existence - of foo/bar.c#CTM If this file exists, the delta is - applied to it instead. This way the foo/bar.c file - can be edited to suit local needs. - - Make a ``restore file(s)'' option to - ctm -r src/sys/i386/wd.c /here/are/my/deltas/src-cur.* - - would restore Clean up the options to