info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: My own substitution keywords


From: Matthew Herrmann
Subject: RE: My own substitution keywords
Date: Tue, 31 Dec 2002 11:09:31 +1100

Hi Fredrik,

My advice is to check out the scripts you can run on the server side
on commit. You can only allow commits of *.java files which contain
the copyright text.

You can then include the code template in the project in a /resources
folder so people will at first try to commit a vanilla code file, get
an error, then they will get into the habit of starting with the
template.

Only problem with this is that the copyright message is hard to change.
If you are publishing your code, just add a little script to the end of
it, and have people run release.sh which exports and adds copyright
messages, (version controlled in your project folder), instead of typing
"cvs export". This will get you the closest to the behaviour you are after.

To release software here, we have a "release.bat" which checks out a tagged
version, then checks it for style errors, etc.

cheers,
matt


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Date: Mon, 30 Dec 2002 13:26:31 +0100
From: Fredrik Wendt <address@hidden>
To: address@hidden
Subject: My own substitution keywords
Message-ID: <address@hidden>
Content-Type: text/plain; charset=us-ascii; format=flowed
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Precedence: list
Message: 1

Hi all.

I just wondered if there's a way to define my own keywords. I guess this
is somewhat hardcoded into cvs, but what alternatives are there to for
example insert a standard copyright message into source files?

Thanks,

    Fredrik




reply via email to

[Prev in Thread] Current Thread [Next in Thread]