I think the answer that you are looking for is RCS. RCS is a form of revision control in the same vein as CVS that allows for a programmer to keep multiple revisions of a file they are working on. RCS allows you to keep a log of the various revisions you've created as well as perform diffs between revisions, number them according to development and many other features that are very conducive to keeping your programming project into perspective.

There is an excellent book on the subject, but gets pretty in depth and complicated. If you're just looking to get some of the basics in, you can check out this tutorial.

For the 2 minute answer to your question. RCS supports a couple different informational 'tags' that you can add within your code which expand to a larger piece of text. By adding $Id:$ to your file being held by RCS, the tag expands to the larger piece of information that you have in your example.

humbly -c


In reply to Re: script version by c
in thread script version by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.