Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ diffmk(CT) — Xenix 2.3.4g

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

diff(C)

nroff(CT)



     DIFFMK(CT)               XENIX System V                DIFFMK(CT)



     Name
          diffmk - Marks differences between files.

     Syntax
          diffmk name1 name2 name3

     Description
          diffmk compares two versions of a file and creates a third
          file that includes ``change mark'' commands for nroff(CT) or
          troff(CT).  name1 and name2 are the old and new versions of
          the file.  diffmk generates name3, which contains the lines
          of name2 plus inserted formatter ``change mark'' (.mc)
          requests.  When name3 is formatted, changed or inserted text
          is shown by ``|'' at the right margin of each line.  The
          position of deleted text is shown by a single ``*''.

          The diffmk command will produce listings of C (or other)
          programs with changes marked.  A typical command line for
          such use is:

               diffmk old.c new.c tmp; nroff macs tmp | pr

          where the file macs contains:

               .pl 1
               .ll 77
               .nf
               .eo
               .nc `

          The .ll request might specify a different line length,
          depending on the nature of the program being printed.  The
          .eo and .nc requests are probably needed only for C
          programs.

          If the characters ``|'' and ``*'' are inappropriate, a copy
          of diffmk can be edited to change them (diffmk is a shell
          procedure).

     See Also
          diff(C), nroff(CT)

     Notes
          Aesthetic considerations may dictate manual adjustment of
          some output.  File differences involving only formatting
          requests may produce undesirable output.  For example,
          replacing .sp by .sp 2 will produce a ``change mark'' on the
          preceding or following line of output.







     Page 1                                           (printed 8/7/87)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026