about summary refs log tree commit diff
path: root/localedata/unicode-gen
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-04-23 15:42:54 -0400
committerMike Frysinger <vapier@gentoo.org>2016-06-11 02:10:52 -0400
commit277da2ab88b5c0d20ebdb0a3e7e0948398105a14 (patch)
tree6b62c053ab23c46577fce6418b913338a0c15e0b /localedata/unicode-gen
parent6a54bcda7a2a64e465992a9984785443fd594743 (diff)
downloadglibc-277da2ab88b5c0d20ebdb0a3e7e0948398105a14.tar.gz
glibc-277da2ab88b5c0d20ebdb0a3e7e0948398105a14.tar.xz
glibc-277da2ab88b5c0d20ebdb0a3e7e0948398105a14.zip
unicode-gen: include standard comment file header
We deployed this header to all the locale files, so make sure
we include it in the generated ones too so we don't lose it.
Diffstat (limited to 'localedata/unicode-gen')
-rw-r--r--localedata/unicode-gen/gen_translit_circle.py1
-rw-r--r--localedata/unicode-gen/gen_translit_cjk_compat.py1
-rw-r--r--localedata/unicode-gen/gen_translit_combining.py1
-rw-r--r--localedata/unicode-gen/gen_translit_compat.py1
-rw-r--r--localedata/unicode-gen/gen_translit_font.py1
-rw-r--r--localedata/unicode-gen/gen_translit_fraction.py1
-rw-r--r--localedata/unicode-gen/unicode_utils.py11
7 files changed, 17 insertions, 0 deletions
diff --git a/localedata/unicode-gen/gen_translit_circle.py b/localedata/unicode-gen/gen_translit_circle.py
index 03d581849e..eb59e7153a 100644
--- a/localedata/unicode-gen/gen_translit_circle.py
+++ b/localedata/unicode-gen/gen_translit_circle.py
@@ -62,6 +62,7 @@ def output_head(translit_file, unicode_version, head=''):
     else:
         translit_file.write('escape_char /\n')
         translit_file.write('comment_char %\n')
+        translit_file.write(unicode_utils.COMMENT_HEADER)
         translit_file.write('\n')
         translit_file.write('% Transliterations of encircled characters.\n')
         translit_file.write('% Generated automatically from UnicodeData.txt '
diff --git a/localedata/unicode-gen/gen_translit_cjk_compat.py b/localedata/unicode-gen/gen_translit_cjk_compat.py
index eecc9cc6ee..bea6f8b614 100644
--- a/localedata/unicode-gen/gen_translit_cjk_compat.py
+++ b/localedata/unicode-gen/gen_translit_cjk_compat.py
@@ -63,6 +63,7 @@ def output_head(translit_file, unicode_version, head=''):
     else:
         translit_file.write('escape_char /\n')
         translit_file.write('comment_char %\n')
+        translit_file.write(unicode_utils.COMMENT_HEADER)
         translit_file.write('\n')
         translit_file.write('% Transliterations of CJK compatibility ')
         translit_file.write('characters.\n')
diff --git a/localedata/unicode-gen/gen_translit_combining.py b/localedata/unicode-gen/gen_translit_combining.py
index a60d11b707..48742b53a7 100644
--- a/localedata/unicode-gen/gen_translit_combining.py
+++ b/localedata/unicode-gen/gen_translit_combining.py
@@ -62,6 +62,7 @@ def output_head(translit_file, unicode_version, head=''):
     else:
         translit_file.write('escape_char /\n')
         translit_file.write('comment_char %\n')
+        translit_file.write(unicode_utils.COMMENT_HEADER)
         translit_file.write('\n')
         translit_file.write('% Transliterations that remove all ')
         translit_file.write('combining characters (accents,\n')
diff --git a/localedata/unicode-gen/gen_translit_compat.py b/localedata/unicode-gen/gen_translit_compat.py
index 759e4ed082..62d5e07477 100644
--- a/localedata/unicode-gen/gen_translit_compat.py
+++ b/localedata/unicode-gen/gen_translit_compat.py
@@ -62,6 +62,7 @@ def output_head(translit_file, unicode_version, head=''):
     else:
         translit_file.write('escape_char /\n')
         translit_file.write('comment_char %\n')
+        translit_file.write(unicode_utils.COMMENT_HEADER)
         translit_file.write('\n')
         translit_file.write('% Transliterations of compatibility characters ')
         translit_file.write('and ligatures.\n')
diff --git a/localedata/unicode-gen/gen_translit_font.py b/localedata/unicode-gen/gen_translit_font.py
index c6c55451f3..927f16db13 100644
--- a/localedata/unicode-gen/gen_translit_font.py
+++ b/localedata/unicode-gen/gen_translit_font.py
@@ -62,6 +62,7 @@ def output_head(translit_file, unicode_version, head=''):
     else:
         translit_file.write('escape_char /\n')
         translit_file.write('comment_char %\n')
+        translit_file.write(unicode_utils.COMMENT_HEADER)
         translit_file.write('\n')
         translit_file.write('% Transliterations of font equivalents.\n')
         translit_file.write('% Generated automatically from UnicodeData.txt '
diff --git a/localedata/unicode-gen/gen_translit_fraction.py b/localedata/unicode-gen/gen_translit_fraction.py
index b14c23abef..29fe0661aa 100644
--- a/localedata/unicode-gen/gen_translit_fraction.py
+++ b/localedata/unicode-gen/gen_translit_fraction.py
@@ -62,6 +62,7 @@ def output_head(translit_file, unicode_version, head=''):
     else:
         translit_file.write('escape_char /\n')
         translit_file.write('comment_char %\n')
+        translit_file.write(unicode_utils.COMMENT_HEADER)
         translit_file.write('\n')
         translit_file.write('% Transliterations of fractions.\n')
         translit_file.write('% Generated automatically from UnicodeData.txt '
diff --git a/localedata/unicode-gen/unicode_utils.py b/localedata/unicode-gen/unicode_utils.py
index 8cc5f2ba2a..18be659816 100644
--- a/localedata/unicode-gen/unicode_utils.py
+++ b/localedata/unicode-gen/unicode_utils.py
@@ -25,6 +25,17 @@ Unicode data for glibc from upstream Unicode data files.
 import sys
 import re
 
+
+# Common locale header.
+COMMENT_HEADER = """
+% This file is part of the GNU C Library and contains locale data.
+% The Free Software Foundation does not claim any copyright interest
+% in the locale data contained in this file.  The foregoing does not
+% affect the license of the GNU C Library as a whole.  It does not
+% exempt you from the conditions of the license if your use would
+% otherwise be governed by that license.
+"""
+
 # Dictionary holding the entire contents of the UnicodeData.txt file
 #
 # Contents of this dictionary look like this: