Add copyright information to .py files
This change adds explicit copyright information too python
files files. The copyright year used in each case is the
date of the first git commit of each file.
The goal is to allow jsoncpp to be integrated into the
chromium source tree which requires license information in
each source file.
fixes #234
diff --git a/devtools/__init__.py b/devtools/__init__.py
index c944e7c..d18a521 100644
--- a/devtools/__init__.py
+++ b/devtools/__init__.py
@@ -1 +1,6 @@
-# module
\ No newline at end of file
+# Copyright 2010 Baptiste Lepilleur
+# Distributed under MIT license, or public domain if desired and
+# recognized in your jurisdiction.
+# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
+# module
diff --git a/devtools/antglob.py b/devtools/antglob.py
index afd4c48..c272f66 100644
--- a/devtools/antglob.py
+++ b/devtools/antglob.py
@@ -1,6 +1,9 @@
#!/usr/bin/env python
# encoding: utf-8
-# Baptiste Lepilleur, 2009
+# Copyright 2009 Baptiste Lepilleur
+# Distributed under MIT license, or public domain if desired and
+# recognized in your jurisdiction.
+# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
from __future__ import print_function
from dircache import listdir
diff --git a/devtools/fixeol.py b/devtools/fixeol.py
index a76880f..054eb9b 100644
--- a/devtools/fixeol.py
+++ b/devtools/fixeol.py
@@ -1,3 +1,8 @@
+# Copyright 2010 Baptiste Lepilleur
+# Distributed under MIT license, or public domain if desired and
+# recognized in your jurisdiction.
+# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
from __future__ import print_function
import os.path
diff --git a/devtools/tarball.py b/devtools/tarball.py
index b2030fb..2e72717 100644
--- a/devtools/tarball.py
+++ b/devtools/tarball.py
@@ -1,3 +1,8 @@
+# Copyright 2010 Baptiste Lepilleur
+# Distributed under MIT license, or public domain if desired and
+# recognized in your jurisdiction.
+# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
from contextlib import closing
import os
import tarfile
diff --git a/makerelease.py b/makerelease.py
index b7235db..ea3722d 100644
--- a/makerelease.py
+++ b/makerelease.py
@@ -1,3 +1,8 @@
+# Copyright 2010 Baptiste Lepilleur
+# Distributed under MIT license, or public domain if desired and
+# recognized in your jurisdiction.
+# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
"""Tag the sandbox for release, make source and doc tarballs.
Requires Python 2.6
@@ -14,6 +19,7 @@
Note: This was for Subversion. Now that we are in GitHub, we do not
need to build versioned tarballs anymore, so makerelease.py is defunct.
"""
+
from __future__ import print_function
import os.path
import subprocess
diff --git a/scons-tools/globtool.py b/scons-tools/globtool.py
index ea7db2d..890f1b7 100644
--- a/scons-tools/globtool.py
+++ b/scons-tools/globtool.py
@@ -1,3 +1,8 @@
+# Copyright 2009 Baptiste Lepilleur
+# Distributed under MIT license, or public domain if desired and
+# recognized in your jurisdiction.
+# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
import fnmatch
import os
diff --git a/scons-tools/srcdist.py b/scons-tools/srcdist.py
index 663a234..fe1d746 100644
--- a/scons-tools/srcdist.py
+++ b/scons-tools/srcdist.py
@@ -1,3 +1,8 @@
+# Copyright 2007 Baptiste Lepilleur
+# Distributed under MIT license, or public domain if desired and
+# recognized in your jurisdiction.
+# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
import os
import os.path
from fnmatch import fnmatch
diff --git a/scons-tools/substinfile.py b/scons-tools/substinfile.py
index 33e5de0..c620442 100644
--- a/scons-tools/substinfile.py
+++ b/scons-tools/substinfile.py
@@ -1,3 +1,8 @@
+# Copyright 2010 Baptiste Lepilleur
+# Distributed under MIT license, or public domain if desired and
+# recognized in your jurisdiction.
+# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
import re
from SCons.Script import * # the usual scons stuff you get in a SConscript
import collections
diff --git a/scons-tools/targz.py b/scons-tools/targz.py
index 6a4f3fa..8e5ba83 100644
--- a/scons-tools/targz.py
+++ b/scons-tools/targz.py
@@ -1,3 +1,8 @@
+# Copyright 2007 Baptiste Lepilleur
+# Distributed under MIT license, or public domain if desired and
+# recognized in your jurisdiction.
+# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
"""tarball
Tool-specific initialization for tarball.
diff --git a/test/cleantests.py b/test/cleantests.py
index 1a4f1f1..9772d54 100644
--- a/test/cleantests.py
+++ b/test/cleantests.py
@@ -1,4 +1,10 @@
-# removes all files created during testing
+# Copyright 2007 Baptiste Lepilleur
+# Distributed under MIT license, or public domain if desired and
+# recognized in your jurisdiction.
+# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
+"""Removes all files created during testing."""
+
import glob
import os
diff --git a/test/generate_expected.py b/test/generate_expected.py
index 2bbf569..0b74f51 100644
--- a/test/generate_expected.py
+++ b/test/generate_expected.py
@@ -1,3 +1,8 @@
+# Copyright 2007 Baptiste Lepilleur
+# Distributed under MIT license, or public domain if desired and
+# recognized in your jurisdiction.
+# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
from __future__ import print_function
import glob
import os.path
diff --git a/test/pyjsontestrunner.py b/test/pyjsontestrunner.py
index afaabd9..7f38356 100644
--- a/test/pyjsontestrunner.py
+++ b/test/pyjsontestrunner.py
@@ -1,4 +1,11 @@
-# Simple implementation of a json test runner to run the test against json-py.
+# Copyright 2007 Baptiste Lepilleur
+# Distributed under MIT license, or public domain if desired and
+# recognized in your jurisdiction.
+# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
+"""Simple implementation of a json test runner to run the test against
+json-py."""
+
from __future__ import print_function
import sys
import os.path
diff --git a/test/runjsontests.py b/test/runjsontests.py
index 597bf2f..d21c02f 100644
--- a/test/runjsontests.py
+++ b/test/runjsontests.py
@@ -1,3 +1,8 @@
+# Copyright 2007 Baptiste Lepilleur
+# Distributed under MIT license, or public domain if desired and
+# recognized in your jurisdiction.
+# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
from __future__ import print_function
from __future__ import unicode_literals
from io import open
diff --git a/test/rununittests.py b/test/rununittests.py
index dd1c9a3..08850ec 100644
--- a/test/rununittests.py
+++ b/test/rununittests.py
@@ -1,3 +1,8 @@
+# Copyright 2009 Baptiste Lepilleur
+# Distributed under MIT license, or public domain if desired and
+# recognized in your jurisdiction.
+# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
from __future__ import print_function
from __future__ import unicode_literals
from io import open