Commit b8a18eac authored by Martin v. Löwis's avatar Martin v. Löwis

Fix Tcl/Tk license file in tcl8*/tk8*, include Tix license.

parent 7b9e1247
...@@ -848,17 +848,18 @@ def generate_license(): ...@@ -848,17 +848,18 @@ def generate_license():
import shutil, glob import shutil, glob
out = open("LICENSE.txt", "w") out = open("LICENSE.txt", "w")
shutil.copyfileobj(open(os.path.join(srcdir, "LICENSE")), out) shutil.copyfileobj(open(os.path.join(srcdir, "LICENSE")), out)
for dir, file in (("bzip2","LICENSE"), for name, pat, file in (("bzip2","bzip2-*", "LICENSE"),
("db", "LICENSE"), ("Berkeley DB", "db-*", "LICENSE"),
("openssl", "LICENSE"), ("openssl", "openssl-*", "LICENSE"),
("tcl", "license.terms"), ("Tcl", "tcl8*", "license.terms"),
("tk", "license.terms")): ("Tk", "tk8*", "license.terms"),
out.write("\nThis copy of Python includes a copy of %s, which is licensed under the following terms:\n\n" % dir) ("Tix", "tix-*", "license.terms")):
dirs = glob.glob(srcdir+"/../"+dir+"-*") out.write("\nThis copy of Python includes a copy of %s, which is licensed under the following terms:\n\n" % name)
dirs = glob.glob(srcdir+"/../"+pat)
if not dirs: if not dirs:
raise ValueError, "Could not find "+srcdir+"/../"+dir+"-*" raise ValueError, "Could not find "+srcdir+"/../"+pat
if len(dirs) > 2: if len(dirs) > 2:
raise ValueError, "Multiple copies of "+dir raise ValueError, "Multiple copies of "+pat
dir = dirs[0] dir = dirs[0]
shutil.copyfileobj(open(os.path.join(dir, file)), out) shutil.copyfileobj(open(os.path.join(dir, file)), out)
out.close() out.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment