gzz-dev
[Top][All Lists]
Advanced

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

[Gzz] make copyrighted


From: B. Fallenstein
Subject: [Gzz] make copyrighted
Date: Thu, 25 Jul 2002 09:16:34 +0200
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.0.0) Gecko/20020614 Debian/1.0.0-3

Hiya,

Here's a cute little tool. When creating a new file, instead of copying another file's header, you can now just start it like this:

    //(c):Benja Fallenstein
    package gzz.impl;
    import gzz.*;

    /** Just one of 'em classes... */
    public class Foo {

Or, in Python and similar,

    #(c):Benja Fallenstein
    """
    foopackage.py-- What a wonderful package!
    """

After creating one or more of these, before committing, you do

    make copyrighted

and that walks the whole tree (takes a while), looking for files starting with one of the magical strings ('#(c):' and '//(c):') and creates the appropriate headers (filename, copyright, license statement, written by). It even takes the year from your system time, so you can safely continue using it in 2003 ;-)

Plus points:
- Less work.
- You write the import statements yourself, thus don't copy superfluous lines.
- Never forget any changes in the headers.
- Now the headers can go even into .pys and .tests-- they belong in *all* files.

Makin' life a lil' easier,
- Benja




reply via email to

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