On 6/27/11 3:17 AM, Adam Tkac wrote:
> This seems the best (and shortest) for me. However I'm also OK with
> Peter's proposal.

I ultimately opted for the following approach:

-- Modify README.txt to be platform-neutral.  Basically, I consolidated
much of the text from unix/README, win/README_BINARY.txt, and
win/README.txt into one file.

-- Maintain a comprehensive list of copyrights in README.txt (for the
C/C++ code) and java/src/com/tigervnc/vncviewer/README (for the Java
code.)  I wrote a script (attached) which attempts to parse these from
the source files, but of course it still requires some manual tweaking
after the fact.

-- Distribute README.txt with all binary packages

-- At run time, print

   Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt)

Thus, only README.txt and java/src/com/tigervnc/vncviewer/README have to
be updated.
find_copyrights() {
        for i in `find . \( -iname *.cxx -o -iname *.c -o -iname *.h \) -a ! 
-path "./common/zlib*" -a ! -path "./common/jpeg*"`; do
                grep -Ei "^.*(//|/\*| \*).*Copyright" "$i" | sed -e s/\\.[\ 
\t]*[Aa]ll\ [Rr]ights\ [Rr]eserved.*$//g | sed s/^.*[Cc]opyright[^0-9]*//g
        done
}

find_copyrights_java() {
        for i in `find . -iname *.java`; do
                grep -Ei "^.*(//|/\*| \*).*Copyright" "$i" | sed -e s/\\.[\ 
\t]*[Aa]ll\ [Rr]ights\ [Rr]eserved.*$//g | sed s/^.*[Cc]opyright[^0-9]*//g
        done
}

echo \*\*\* C/C++
find_copyrights | sort | uniq -

echo \*\*\* Java
find_copyrights_java | sort | uniq -
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

Reply via email to