Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ prs(1) — CLIX 3.1r7.6.22

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

admin(1)

delta(1)

get(1)

help(1)

sccsfile(4)



  prs(1)                              CLIX                              prs(1)



  NAME

    prs - Displays an SCCS file

  SYNOPSIS

    prs [-d[dataspec]] [-r[SID]] [-e] [-l] [-c[cutoff]] [-a] files

  DESCRIPTION

    The prs command displays, on stdout, parts or all of an SCCS file (see
    sccsfile) in a user-supplied format.  If a directory is named, prs behaves
    as though each file in the directory were specified as a named file,
    except that non-SCCS files (last component of the pathname does not begin
    with s.), and unreadable files are silently ignored.  If a name of - is
    given, stdin is read; each line of stdin is taken to be the name of an
    SCCS file or directory to be processed; non-SCCS files and unreadable
    files are silently ignored.

    Arguments to prs, which may appear in any order, consist of flag
    arguments, and filenames.

    All the described flag arguments apply independently to each named file:

    -d [dataspec]   Used to specify the output data specification.  The
                    dataspec is a string consisting of SCCS file data keywords
                    (see DATA KEYWORDS) interspersed with optional user
                    supplied text.

    -r [SID]        Used to specify the SCCS Identification (SID) string of a
                    delta for which information is desired.  If no SID is
                    specified, the SID of the most recently created delta is
                    assumed.

    -e              Requests information for all deltas created earlier than
                    and including the delta designated with the -r flag or the
                    date given by the -c flag.

    -l              Requests information for all deltas created later than and
                    including the delta designated with the -r flag or the
                    date given by the -c flag.

    -c [cutoff]     The cutoff date-time -c[cutoff] is in the form:

                         YY[MM[DD[HH[MM[SS]]]]]

                    Units omitted from the cutoff default to their maximum
                    possible values; that is, -c7502 is equivalent to -
                    c750228235959.  Any number of non-numeric characters may
                    separate the various 2-digit pieces of the cutoff date in
                    the form: \"-c77/2/2 9:22:25".



  2/94 - Intergraph Corporation                                              1






  prs(1)                              CLIX                              prs(1)



    -a              Requests displaying of information for both removed, that
                    is, delta type = R, (see rmdel) and existing, that is,
                    delta type = D, deltas.  If the -a flag is not specified,
                    information for existing deltas only is provided.

  DATA KEYWORDS

    Data keywords specify which parts of an SCCS file are to be retrieved and
    output.  All parts of an SCCS file (see sccsfile) have an associated data
    keyword.  There is no limit on the number of times a data keyword may
    appear in a dataspec.

    The information displayed by prs consists of: (1) the user-supplied text;
    and (2) appropriate values (extracted from the SCCS file) substituted for
    the recognized data keywords in the order of appearance in the dataspec.
    The format of a data keyword value is either Simple (S), in which keyword
    substitution is direct, or Multi-line (M), in which keyword substitution
    is followed by a carriage return.

    User-supplied text is any text other than recognized data keywords.

    A tab is specified by \t and carriage return/newline is specified by \n.
    The default data keywords are:

    :Dt:\t:DL:\nMRs:\n:MR:COMMENTS:\n:C:

                         TABLE 1.  SCCS Files Data Keywords
  KeywordData Item                              File Section      Value      Format
   :Dt:  Delta information                      Delta Table    See below*      S
   :DL:  Delta line statistics                       "       :Li:/:Ld:/:Lu:    S
   :Li:  Lines inserted by Delta                     "            nnnnn        S
   :Ld:  Lines deleted by Delta                      "            nnnnn        S
   :Lu:  Lines unchanged by Delta                    "            nnnnn        S
   :DT:  Delta type                                  "           D~or~R        S
    :I:  SCCS ID string (SID)                        "       :R:.:L:.:B:.:S:   S
    :R:  Release number                              "            nnnn         S
    :L:  Level number                                "            nnnn         S
    :B:  Branch number                               "            nnnn         S
    :S:  Sequence number                             "            nnnn         S
    :D:  Date Delta created                          "       :Dy:/:Dm:/:Dd:    S
   :Dy:  Year Delta created                          "             nn          S
   :Dm:  Month Delta created                         "             nn          S
   :Dd:  Day Delta created                           "             nn          S
    :T:  Time Delta created                          "       :Th:::Tm:::Ts:    S
   :Th:  Hour Delta created                          "             nn          S
   :Tm:  Minutes Delta created                       "             nn          S
   :Ts:  Seconds Delta created                       "             nn          S
    :P:  Programmer who created Delta                "           logname       S
         Delta sequence number





  2                                              Intergraph Corporation - 2/94






  prs(1)                              CLIX                              prs(1)



   :DS:                                              "            nnnn         S





















































  2/94 - Intergraph Corporation                                              3






  prs(1)                              CLIX                              prs(1)



   :DP:  Predecessor Delta seq-no.                   "            nnnn         S
   :DI:  Seq-no. of deltas incl., excl., ignored     "       :Dn:/:Dx:/:Dg:    S
   :Dn:  Deltas included (seq #)                     "        :DS:~:DS:...     S
   :Dx:  Deltas excluded (seq #)                     "        :DS:~:DS:...     S
   :Dg:  Deltas ignored (seq #)                      "        :DS:~:DS:...     S
   :MR:  MR numbers for delta                        "            text         M
    :C:  Comments for delta                          "            text         M
   :UN:  Usernames                               Usernames        text         M
   :FL:  Flag list                                 Flags          text         M
    :Y:  Module type flag                            "            text         S
   :MF:  MR validation flag                          "          yes~or~no      S
   :MP:  MR validation pgm name                      "            text         S
   :KF:  Keyword error/warning flag                  "          yes~or~no      S
   :KV:  Keyword validation string                   "            text         S
   :BF:  Branch flag                                 "          yes~or~no      S
    :J:  Joint edit flag                             "          yes~or~no      S
   :LK:  Locked releases                             "           :R:...        S
    :Q:  User-defined keyword                        "            text         S
    :M:  Module name                                 "            text         S
   :FB:  Floor boundary                              "             :R:         S
   :CB:  Ceiling boundary                            "             :R:         S
   :Ds:  Default SID                                 "             :I:         S
   :ND:  Null delta flag                             "          yes~or~no      S
   :FD:  File descriptive text                    Comments        text         M
   :BD:  Body                                       Body          text         M
   :GB:  Gotten body                                 "            text         M
    :W:  A form of what(1) string                   N/A        :Z::M:\t:I:     S
    :A:  A form of what(1) string                   N/A     :Z::Y:~:M:~:I::Z:  S
    :Z:  what(1) string delimiter                   N/A           @(#)         S
    :F:  SCCS filename                              N/A           text         S
   :PN:  SCCS file pathname                         N/A           text         S
         * :Dt:~=~:DT:~:I:~:D:~:T:~:P:~:DS:~:DP:

  EXAMPLES

    1.

        prs -d"Users and/or user IDs for :F: are:\n:UN:" s.file

        may produce on stdout:

        Users and/or user IDs for s.file are:
        xyz
        131
        abc


    2.

        prs -d"Newest delta for pgm :M:: :I: Created :D: By :P:" -r s.file




  4                                              Intergraph Corporation - 2/94






  prs(1)                              CLIX                              prs(1)



        may produce on stdout:

        Newest delta for pgm main.c: 3.7 Created 77/12/1 By cas


    3.  As a special case:

        prs -s.file

        may produce on stdout:

        D 1.1 77/12/1 00:00:00 cas 1 000000/00000/00000
        MRs:
        bl78-12345
        bl79-54321


    4.  this is the comment line for s.file initial delta for each delta table
        entry of the ``D'' type.  The only flag argument allowed to be used
        with the special case is the -a flag.

        COMMENTS:


  DIAGNOSTICS

    Use help for explanations.

  RELATED INFORMATION

    Commands: admin(1), delta(1), get(1), help(1)

    Files: sccsfile(4)





















  2/94 - Intergraph Corporation                                              5




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