[buildUCD] also write Unicode license URL to generated modules
This commit is contained in:
parent
3442da1529
commit
a17ccc47f3
@ -20,6 +20,7 @@ from os.path import abspath, dirname, join as pjoin, pardir, sep
|
|||||||
|
|
||||||
|
|
||||||
UNIDATA_URL = "https://unicode.org/Public/UNIDATA/"
|
UNIDATA_URL = "https://unicode.org/Public/UNIDATA/"
|
||||||
|
UNIDATA_LICENSE_URL = "http://unicode.org/copyright.html#License"
|
||||||
|
|
||||||
# by default save output files to ../Lib/fontTools/unicodedata/
|
# by default save output files to ../Lib/fontTools/unicodedata/
|
||||||
UNIDATA_PATH = pjoin(abspath(dirname(__file__)), pardir,
|
UNIDATA_PATH = pjoin(abspath(dirname(__file__)), pardir,
|
||||||
@ -151,6 +152,7 @@ def build_scripts(local_ucd=None, output_path=None):
|
|||||||
f.write("#\n")
|
f.write("#\n")
|
||||||
f.write(NOTICE)
|
f.write(NOTICE)
|
||||||
f.write("# Source: {}{}\n".format(UNIDATA_URL, filename))
|
f.write("# Source: {}{}\n".format(UNIDATA_URL, filename))
|
||||||
|
f.write("# License: {}\n".format(UNIDATA_LICENSE_URL))
|
||||||
f.write("#\n")
|
f.write("#\n")
|
||||||
f.write(header+"\n\n")
|
f.write(header+"\n\n")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user