CM.TTY.SH(1)

     NAME
          cm.tty.sh - tty interface to all configuration management
          systems

     SYNOPSIS
          cm.tty.sh bugid

     DESCRIPTION
          The cm.tty.sh(1) bourne shell script is called by bugs(1) to
          perform CM actions on behalf of a particular bugid.

          The bugid is the defect identifier (e.g. XXXxx12345).

          The script presents a menu that lets the user choose what
          type of CM transaction to perform (checkin, checkout, etc.).
          Note that the menu allows all normal Unix commands to be run
          from the script.  The means that commands such as cd(1),
          ls(1), and pwd(1) may easily be run.  In addition, the
          command set -x will cause the script to invoke the bourn
          shell debug mode.

          The user may enter a CM action by selecting a number and he
          will then be prompted for a file name.  The script then
          tries to apply the CM action to the file.

          The cm.tty.sh(1) script determines the CM macros to use by
          finding the defects's project and then looking at that
          project's CMsys field in the
          ~ddts/projects/<project_name>/proj.control file. The value
          of that field is prefixed with a "cm." and then a macro file
          by that name is looked up in the ~ddts/etc/CM directory.
          Thus using SCCS will cause the ~ddts/etc/CM/cm.sccs macros
          to be loaded.

          When the macros have been loaded the macro matching the
          CMaction is called.  If the CM action is successful,
          cm2ddts(1) is called to post the CM action and file name to
          the ClearDDTS database.

          Currently the user must cd(1) to a parent directory of SCCS
          or RCS to use these CM systems.


     SEE ALSO
          cm.in(1), cm2ddts(1)