16.05.2015 Views

Working with the Unix OS

Working with the Unix OS

Working with the Unix OS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

57<br />

Development Tools<br />

- data returned by function<br />

Portability<br />

- to produce code to run on many systems<br />

Documentation<br />

- comments throughout for successor programmer<br />

- list of functions to stop duplication<br />

- instructions on use of applications<br />

- end-user documentation<br />

Project Management<br />

- tracking dependencies between modules of code<br />

- dealing <strong>with</strong> change request in controlled way<br />

- seeing that milestone dates are met<br />

SCCS<br />

When a program is under <strong>the</strong> control of SCCS, only one copy of any one version of 1 code can be retrieved for<br />

editing at a given time.<br />

Only <strong>the</strong> changes are recorded. Each version is identified by its SID (SCCS indent number).<br />

SCCS commands:<br />

admin initialise SCCS files – access<br />

get retrieves versions of SCCS files<br />

delta applies changes to SCCS files<br />

prs prints portions of SCCS files<br />

rmdel remove a delta from SCCS<br />

cdc change comment <strong>with</strong> delta<br />

what search files for special pattern<br />

sccsdiff show differences between SCCS files<br />

comb combine consecutive deltas into one<br />

val validate an SCCS file<br />

Used to track evolving versions of files:<br />

- store and retrieve files under its control<br />

- allow no more than a single copy of a file to be edited at one time<br />

- provide an audit trail of changes to files<br />

- reconstruct any earlier version of file<br />

History data can be stored <strong>with</strong> each version,<br />

- Why changes were made,<br />

- Who made <strong>the</strong>m,<br />

- When <strong>the</strong>y were made.<br />

Terminology<br />

A delta is a set of changes made to a file under SCCS custody. To identify and keep track of a delta, it is<br />

assigned as SID (SCCS ID).<br />

Creating SCCS file<br />

A file called "lang" contains <strong>the</strong> following:<br />

C<br />

PL/1<br />

FORTRAN<br />

COBOL<br />

ALGOL<br />

$ admin -ilang s.lang<br />

$ rm lang<br />

Retrieving file via "get"<br />

$ get s.lang

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!