From owner-freebsd-questions Tue Sep 26 16:25:45 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.100.7]) by hub.freebsd.org (Postfix) with ESMTP id AFCB237B423 for ; Tue, 26 Sep 2000 16:25:38 -0700 (PDT) Received: from [128.113.24.161] (vc24-02.dynamic.rpi.edu [128.113.24.161]) by mail.rpi.edu (8.9.3/8.9.3) with ESMTP id TAA335308; Tue, 26 Sep 2000 19:25:32 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu (Unverified) Message-Id: In-Reply-To: References: Date: Tue, 26 Sep 2000 19:14:45 -0400 To: Zhiui Zhang , freebsd-questions@FreeBSD.ORG From: Garance A Drosihn Subject: Re: recording program file version Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 1:59 PM -0400 9/26/00, Zhiui Zhang wrote: >Each source code file in FreeBSD has something like: > >$FreeBSD: src/sys/kern/tty.c,v 1.129.2.1 2000/04/11 01:33:35 archie Exp $ > >This is cool. I am now working on a project on my own. But I >do not want to use CVS or RCS. Is there a simple way I can add >the above message to my source code automatically each time I >have modified it (like using some script)? Thanks for your help. Version information isn't overly useful if you can't get back to older versions. If CVS is too scary, then simplistic use of RCS is pretty trivial to setup. Obviously you could write some simplistic perl script to do your own updating of a line similar to the one RCS or CVS would update, but I think that would be a waste of time. Why bother? --- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or drosih@rpi.edu Rensselaer Polytechnic Institute To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message